Skip to content
Snippets Groups Projects
Commit 65f71a20 authored by Ryan Dahl's avatar Ryan Dahl
Browse files

Temp disable pipe2 on linux

parent 20074288
No related branches found
Tags node-v0.5.4
No related merge requests found
......@@ -48,9 +48,13 @@
#include <linux/version.h>
/* pipe2() requires linux >= 2.6.27 and glibc >= 2.9 */
#define HAVE_PIPE2 \
defined(LINUX_VERSION_CODE) && defined(__GLIBC_PREREQ) && LINUX_VERSION_CODE >= 0x2061B && __GLIBC_PREREQ(2, 9))
defined(LINUX_VERSION_CODE) && defined(__GLIBC_PREREQ) && \
LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27) && __GLIBC_PREREQ(2, 9))
#endif
/* XXX disabling HAVE_PIPE2 for now can't compile on 2.6.18 */
#undef HAVE_PIPE2
#ifdef __sun
# include <sys/types.h>
# include <sys/wait.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment