Make new pipe2() test work properly when pipe2() undefined (e.g. on OS X).

This commit is contained in:
Keith Winstein
2012-04-16 00:28:48 -04:00
parent c57ded1790
commit 25b0e0e8ab
+1 -1
View File
@@ -244,7 +244,7 @@ if test -z "$poll_LIBS"; then
fi fi
AC_MSG_CHECKING([whether pipe2(..., O_CLOEXEC) is supported]) AC_MSG_CHECKING([whether pipe2(..., O_CLOEXEC) is supported])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#define _GNU_SOURCE AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define _GNU_SOURCE
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>
int pipefd[2]; int pipefd[2];