summaryrefslogtreecommitdiff
path: root/rts/PosixSource.h
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2010-05-24 10:58:28 +0000
committerSimon Marlow <marlowsd@gmail.com>2010-05-24 10:58:28 +0000
commit757d3c5aa87ff18c0cd8a27870ffc5d7836338ed (patch)
tree0e6e54a85dfe75fcfa1ac83a3ccb320380414925 /rts/PosixSource.h
parentb2e840ee0c95fb549d40950f43cc6e4afc177a46 (diff)
downloadhaskell-757d3c5aa87ff18c0cd8a27870ffc5d7836338ed.tar.gz
Change our #defines to work on FreeBSD too
With glibc, things like _POSIX_C_SOURCE and _ISOC99_SOURCE are additive, but on FreeBSD they are mutually exclusive. However, it turns out we only need to define _POSIX_C_SOURCE and _XOPEN_SOURCE to get all the C99 stuff we need too, so there's no need for any #ifdefs. Submitted by: Gabor PALI <pgj@FreeBSD.org>
Diffstat (limited to 'rts/PosixSource.h')
-rw-r--r--rts/PosixSource.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/rts/PosixSource.h b/rts/PosixSource.h
index b3da60fe37..23101ea470 100644
--- a/rts/PosixSource.h
+++ b/rts/PosixSource.h
@@ -11,12 +11,8 @@
#include <ghcplatform.h>
-#define _POSIX_SOURCE 1
-#define _POSIX_C_SOURCE 199506L
-#define _XOPEN_SOURCE 500
-#define _ISOC99_SOURCE
-
-/* Let's be ISO C99 too... */
+#define _POSIX_C_SOURCE 200112L
+#define _XOPEN_SOURCE 600
#if defined(darwin_HOST_OS)
/* If we don't define this the including sysctl breaks with things like