From 65f71a20391b1ac4651bda8bd95e8924b8a14a21 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 12 Aug 2011 04:08:32 -0400 Subject: [PATCH] Temp disable pipe2 on linux --- src/uv-unix.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/uv-unix.c b/src/uv-unix.c index 5e2d98c7..a2bbb002 100644 --- a/src/uv-unix.c +++ b/src/uv-unix.c @@ -48,9 +48,13 @@ #include /* 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 # include