about summary refs log tree commit diff homepage
path: root/runtime
diff options
context:
space:
mode:
authorMartin Nowack <m.nowack@imperial.ac.uk>2023-02-23 22:06:10 +0000
committerCristian Cadar <c.cadar@imperial.ac.uk>2023-03-17 22:38:16 +0000
commit38b07e7a89f103dc3b690be5382b5a0d9f5aa7fe (patch)
tree4a7fc89d0976bd6af96540626dc4e8203a7f5342 /runtime
parent03fa34c4e51351b357b84a27c705aac5e0a5e68b (diff)
downloadklee-38b07e7a89f103dc3b690be5382b5a0d9f5aa7fe.tar.gz
Fix building of runtime library and klee-replay
Former build system provided additional flags for building bitcode while
they were not required, e.g. under BSD or MacOS.
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>