summaryrefslogtreecommitdiff
path: root/rts/PosixSource.h
diff options
context:
space:
mode:
authorKarel Gardas <karel.gardas@centrum.cz>2016-03-29 00:06:48 +0200
committerKarel Gardas <karel.gardas@centrum.cz>2016-03-29 11:11:50 +0200
commit91b96e1ccce6a642d710ce40211e1795d01abf04 (patch)
tree45501350308d17c12c4761942aa86c2c0407e2d4 /rts/PosixSource.h
parentcd3fbff946bce86b48cba60e018ac864ffc37e57 (diff)
downloadhaskell-91b96e1ccce6a642d710ce40211e1795d01abf04.tar.gz
fix compilation failure on Solaris 11
Summary: Solaris is quite picky about C and POSIX version combination. For recent change to C99 we need to switch _XPG6 on which means _XOPEN_SOURCE should be defined to 600 Reviewers: austin, bgamari, erikd Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2053
Diffstat (limited to 'rts/PosixSource.h')
-rw-r--r--rts/PosixSource.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/PosixSource.h b/rts/PosixSource.h
index 6659cfef91..6246e3e35b 100644
--- a/rts/PosixSource.h
+++ b/rts/PosixSource.h
@@ -11,7 +11,7 @@
#include <ghcplatform.h>
-#if defined(freebsd_HOST_OS) || defined(dragonfly_HOST_OS)
+#if defined(freebsd_HOST_OS) || defined(dragonfly_HOST_OS) || defined(solaris2_HOST_OS)
#define _POSIX_C_SOURCE 200112L
#define _XOPEN_SOURCE 600
#else