diff options
Diffstat (limited to 'compiler-rt/lib/profile/InstrProfilingUtil.c')
-rw-r--r-- | compiler-rt/lib/profile/InstrProfilingUtil.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler-rt/lib/profile/InstrProfilingUtil.c b/compiler-rt/lib/profile/InstrProfilingUtil.c index 0fae91c..a9d9df8 100644 --- a/compiler-rt/lib/profile/InstrProfilingUtil.c +++ b/compiler-rt/lib/profile/InstrProfilingUtil.c @@ -12,6 +12,11 @@ #include <windows.h> #include "WindowsMMap.h" #else +#if defined(__linux__) +// For fdopen(), fileno(), getpagesize(), madvise() +#define _DEFAULT_SOURCE +#endif + #include <errno.h> #include <fcntl.h> #include <sys/file.h> |