summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-12-21 12:48:55 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-12-21 12:48:55 +0000
commitf3c9c3c70187967a670f1c059f5461dce745d92e (patch)
tree58bf50c6a4d4014e976aa6a9e6a69b4680b067de /src
parent8a3e5a8b05ad0a7fab63595b6b4eafec56f63f89 (diff)
downloadskalibs-f3c9c3c70187967a670f1c059f5461dce745d92e.tar.xz
GNU manages to botch dirfd() too. POSIX is hard!
Diffstat (limited to 'src')
-rw-r--r--src/sysdeps/trydirfd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sysdeps/trydirfd.c b/src/sysdeps/trydirfd.c
index c2eccf2..2b65c53 100644
--- a/src/sysdeps/trydirfd.c
+++ b/src/sysdeps/trydirfd.c
@@ -3,6 +3,9 @@
#undef _POSIX_C_SOURCE
#undef _XOPEN_SOURCE
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
#ifndef _NETBSD_SOURCE
#define _NETBSD_SOURCE
#endif