summaryrefslogtreecommitdiff
path: root/src/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'src/sysdeps')
-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