summaryrefslogtreecommitdiff
path: root/lang/ghc7
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2018-05-25 15:24:02 +0000
committerjperkin <jperkin@pkgsrc.org>2018-05-25 15:24:02 +0000
commit2d175a97a126168604813c9d21ed402706015279 (patch)
treeae29c6f4c04dd00e971dfe24aaff3a1f95c13b59 /lang/ghc7
parent6ecd48418b355086a6404fa093ae2f5ddcbae59e (diff)
downloadpkgsrc-2d175a97a126168604813c9d21ed402706015279.tar.gz
ghc7: Set _XOPEN_SOURCE correctly on SunOS.
Diffstat (limited to 'lang/ghc7')
-rw-r--r--lang/ghc7/distinfo3
-rw-r--r--lang/ghc7/patches/patch-rts_PosixSource.h15
2 files changed, 17 insertions, 1 deletions
diff --git a/lang/ghc7/distinfo b/lang/ghc7/distinfo
index 41e580637d5..5d6bd73ec18 100644
--- a/lang/ghc7/distinfo
+++ b/lang/ghc7/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.14 2016/05/07 10:02:06 joerg Exp $
+$NetBSD: distinfo,v 1.15 2018/05/25 15:24:02 jperkin Exp $
SHA1 (ghc-7.6.3-boot-i386-unknown-freebsd.tar.xz) = aea6224f30aa52d9998f2c77f473902179f03b8c
RMD160 (ghc-7.6.3-boot-i386-unknown-freebsd.tar.xz) = 39a588cac4a0411db45ef269fbe6a63c6cb428ee
@@ -28,5 +28,6 @@ SHA1 (patch-libraries_unix_cbits_execvpe.c) = 7e1464f9db0839221252a5328c170248fe
SHA1 (patch-libraries_unix_include_execvpe.h) = 4c48b72f74d360e925528ecce95baa8a2ae923d7
SHA1 (patch-mk_config.mk.in) = 90a156f6c455d4b2c5d10fdf65b3a170dcfc4892
SHA1 (patch-rts_Linker.c) = 39d1ca7a856a3ec25e493e97832ef255562c0719
+SHA1 (patch-rts_PosixSource.h) = 417481d506929be8b27bb106eefc5df2901ebe95
SHA1 (patch-rts_StgCRun.c) = 5d4010dc250af25db0b5b2717c510752f4813e73
SHA1 (patch-rts_ghc.mk) = 6a43e6e2a58793ba4ff309012c3e24114ccde1e2
diff --git a/lang/ghc7/patches/patch-rts_PosixSource.h b/lang/ghc7/patches/patch-rts_PosixSource.h
new file mode 100644
index 00000000000..b0be8e851fd
--- /dev/null
+++ b/lang/ghc7/patches/patch-rts_PosixSource.h
@@ -0,0 +1,15 @@
+$NetBSD: patch-rts_PosixSource.h,v 1.1 2018/05/25 15:24:02 jperkin Exp $
+
+Set _XOPEN_SOURCE correctly on SunOS.
+
+--- rts/PosixSource.h.orig 2013-04-18 21:22:46.000000000 +0000
++++ 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(__sun) && __STDC_VERSION__-0 >= 199901L)
+ #define _POSIX_C_SOURCE 200112L
+ #define _XOPEN_SOURCE 600
+ #else