From 7f82995fb45dfcbb8f3d9b31a90fd41b75004e3c Mon Sep 17 00:00:00 2001 From: Augusto Henrique Hentz Date: Fri, 12 Aug 2011 16:06:02 +0200 Subject: [PATCH] uv-unix: fix typo in definition of HAVE_PIPE2 The define HAVE_PIPE2 was always being set, even when the requisites were not met. --- src/uv-unix.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/uv-unix.c b/src/uv-unix.c index a2bbb002b..bfdeedce7 100644 --- a/src/uv-unix.c +++ b/src/uv-unix.c @@ -47,13 +47,10 @@ #ifdef __linux__ #include /* pipe2() requires linux >= 2.6.27 and glibc >= 2.9 */ -#define HAVE_PIPE2 \ - defined(LINUX_VERSION_CODE) && defined(__GLIBC_PREREQ) && \ - LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27) && __GLIBC_PREREQ(2, 9)) +#if defined(LINUX_VERSION_CODE) && defined(__GLIBC_PREREQ) && LINUX_VERSION_CODE >= 0x2061B && __GLIBC_PREREQ(2, 9) +#define HAVE_PIPE2 +#endif #endif - -/* XXX disabling HAVE_PIPE2 for now can't compile on 2.6.18 */ -#undef HAVE_PIPE2 #ifdef __sun # include