From 21bf9df13cad0da20ecd9fadfa54cd16479238aa Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 15 Mar 2017 15:04:25 +0000 Subject: Better pipe2 detection on BSD systems --- src/sysdeps/trypipe2.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/sysdeps/trypipe2.c') diff --git a/src/sysdeps/trypipe2.c b/src/sysdeps/trypipe2.c index 4e63182..0b8cb3c 100644 --- a/src/sysdeps/trypipe2.c +++ b/src/sysdeps/trypipe2.c @@ -1,11 +1,23 @@ /* ISC license. */ -#ifndef _NETBSD_SOURCE -#define _NETBSD_SOURCE +#undef _POSIX_C_SOURCE +#undef _XOPEN_SOURCE + +#ifndef __EXTENSIONS__ +#define __EXTENSIONS__ #endif #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif +#ifndef _BSD_SOURCE +#define _BSD_SOURCE +#endif +#ifndef _NETBSD_SOURCE +#define _NETBSD_SOURCE +#endif +#ifndef _INCOMPLETE_XOPEN_C063 +#define _INCOMPLETE_XOPEN_C063 +#endif #include -- cgit v1.2.3