summaryrefslogtreecommitdiff
path: root/src/sysdeps/trysplice.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-03-15 09:32:36 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-03-15 09:32:36 +0000
commita36a3eb159d88507705253577814a8fdcb2a86d1 (patch)
tree7b1af1e5909b330f4a602fc20229c3911dd0b233 /src/sysdeps/trysplice.c
parent329aee76f71ca3fdc832e14e1b4ef7309e97e638 (diff)
downloadskalibs-a36a3eb159d88507705253577814a8fdcb2a86d1.tar.xz
sysdeps tests cleanup. (I expect BSDs to break, as usual.)
Diffstat (limited to 'src/sysdeps/trysplice.c')
-rw-r--r--src/sysdeps/trysplice.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sysdeps/trysplice.c b/src/sysdeps/trysplice.c
index 7428418..8e8bd72 100644
--- a/src/sysdeps/trysplice.c
+++ b/src/sysdeps/trysplice.c
@@ -1,7 +1,9 @@
/* ISC license. */
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
-#include <sys/types.h>
+#endif
+
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>