summaryrefslogtreecommitdiff
path: root/src/libstddjb/pipe_internal.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-03-15 15:04:25 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-03-15 15:04:25 +0000
commit21bf9df13cad0da20ecd9fadfa54cd16479238aa (patch)
tree463a70a01e82f731fa31d60023778d078a0d7269 /src/libstddjb/pipe_internal.c
parent6d2c28acaa0c11841ca57ffe2b07e34c91cdea9e (diff)
downloadskalibs-21bf9df13cad0da20ecd9fadfa54cd16479238aa.tar.xz
Better pipe2 detection on BSD systems
Diffstat (limited to 'src/libstddjb/pipe_internal.c')
-rw-r--r--src/libstddjb/pipe_internal.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/libstddjb/pipe_internal.c b/src/libstddjb/pipe_internal.c
index a1e8a8f..48f182a 100644
--- a/src/libstddjb/pipe_internal.c
+++ b/src/libstddjb/pipe_internal.c
@@ -4,14 +4,7 @@
#ifdef SKALIBS_HASPIPE2
-#ifndef _NETBSD_SOURCE
-#define _NETBSD_SOURCE
-#endif
-
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
-
+#include <skalibs/nonposix.h>
#include <unistd.h>
#include <fcntl.h>
#include <skalibs/djbunix.h>