Fix a C++11 compile error with clang.

https://github.com/mxcl/homebrew/pull/22016#issuecomment-23222977
This commit is contained in:
ridiculousfish 2013-08-25 00:44:22 -07:00
parent 8605cc685d
commit a8af974895

View file

@ -376,7 +376,7 @@ static void launch_process_nofork(process_t *p)
*/ */
static int has_fd(const io_chain_t &d, int fd) static int has_fd(const io_chain_t &d, int fd)
{ {
return io_chain_get(d, fd) != NULL; return io_chain_get(d, fd).get() != NULL;
} }
/** /**