about summary refs log tree commit diff homepage
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/POSIX/fd.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/POSIX/fd.h b/runtime/POSIX/fd.h
index 39307ceb..5fa42874 100644
--- a/runtime/POSIX/fd.h
+++ b/runtime/POSIX/fd.h
@@ -16,6 +16,13 @@
 #error "_LARGEFILE64_SOURCE should be defined"
 #endif
 
+#if defined(__APPLE__) || defined(__FreeBSD__)
+#else
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
+#endif
+
 #include <dirent.h>
 #include <sys/types.h>