summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2016-07-06 14:19:51 +0000
committerjperkin <jperkin@pkgsrc.org>2016-07-06 14:19:51 +0000
commitaf679cb10d23d826acca0190239f28a6ba1d2efd (patch)
tree6fe833e28f16dc6c76ae4c8ff59ada0561451ca7
parentc2fcadca64f35b21227afed1ce5625a07ed29750 (diff)
downloadpkgsrc-af679cb10d23d826acca0190239f28a6ba1d2efd.tar.gz
Fix _XOPEN_SOURCE failure on SunOS.
-rw-r--r--lang/ocaml/distinfo3
-rw-r--r--lang/ocaml/patches/patch-otherlibs_bigarray_mmap__unix.c16
2 files changed, 18 insertions, 1 deletions
diff --git a/lang/ocaml/distinfo b/lang/ocaml/distinfo
index f838c2f8989..db086f01ccc 100644
--- a/lang/ocaml/distinfo
+++ b/lang/ocaml/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.94 2016/05/05 08:12:01 jaapb Exp $
+$NetBSD: distinfo,v 1.95 2016/07/06 14:19:51 jperkin Exp $
SHA1 (ocaml-4.03.0.tar.gz) = 28773fd89507dbc400a366b886425436569e70d8
RMD160 (ocaml-4.03.0.tar.gz) = 774934e72746cd8b94ac732abdd47d7f06344fda
@@ -21,6 +21,7 @@ SHA1 (patch-ocamldoc_Makefile) = ba4e2c76e1f2832988dd6933cd9d68a7ba3fb870
SHA1 (patch-ocamldoc_odoc__messages.ml) = 77f650a5f34f40b9648a8d5091e9aa31efb5734b
SHA1 (patch-otherlibs_Makefile) = 839485e6576dcee53420a1bb75f49f7168b12427
SHA1 (patch-otherlibs_Makefile.shared) = 86cd1c0e47f918b0231fdc341f27e742a8ae74b5
+SHA1 (patch-otherlibs_bigarray_mmap__unix.c) = 0cc724cf172b9e389a0ec05a7a25ab1f45ede037
SHA1 (patch-otherlibs_dynlink_Makefile) = f892254a5e5a01462ecbf68e45f9bfe5783158d3
SHA1 (patch-otherlibs_systhreads_Makefile) = d731864c613383b36846cae4961b7a221bd6160e
SHA1 (patch-otherlibs_threads_Makefile) = 47331a06a93eac68403fa2114495782430087f1e
diff --git a/lang/ocaml/patches/patch-otherlibs_bigarray_mmap__unix.c b/lang/ocaml/patches/patch-otherlibs_bigarray_mmap__unix.c
new file mode 100644
index 00000000000..90d22c680ca
--- /dev/null
+++ b/lang/ocaml/patches/patch-otherlibs_bigarray_mmap__unix.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-otherlibs_bigarray_mmap__unix.c,v 1.1 2016/07/06 14:19:51 jperkin Exp $
+
+Avoid incompatible _XOPEN_SOURCE definition on SunOS.
+
+--- otherlibs/bigarray/mmap_unix.c.orig 2016-04-25 13:36:01.000000000 +0000
++++ otherlibs/bigarray/mmap_unix.c
+@@ -15,7 +15,9 @@
+
+ /* Needed (under Linux at least) to get pwrite's prototype in unistd.h.
+ Must be defined before the first system .h is included. */
++#ifndef __sun
+ #define _XOPEN_SOURCE 500
++#endif
+
+ #include <stddef.h>
+ #include <string.h>