pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/ocaml Fix _XOPEN_SOURCE failure on SunOS.
details: https://anonhg.NetBSD.org/pkgsrc/rev/2d89cd8eb0c3
branches: trunk
changeset: 349387:2d89cd8eb0c3
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Wed Jul 06 14:19:51 2016 +0000
description:
Fix _XOPEN_SOURCE failure on SunOS.
diffstat:
lang/ocaml/distinfo | 3 ++-
lang/ocaml/patches/patch-otherlibs_bigarray_mmap__unix.c | 16 ++++++++++++++++
2 files changed, 18 insertions(+), 1 deletions(-)
diffs (37 lines):
diff -r d125cfad224e -r 2d89cd8eb0c3 lang/ocaml/distinfo
--- a/lang/ocaml/distinfo Wed Jul 06 14:17:45 2016 +0000
+++ b/lang/ocaml/distinfo Wed Jul 06 14:19:51 2016 +0000
@@ -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_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 -r d125cfad224e -r 2d89cd8eb0c3 lang/ocaml/patches/patch-otherlibs_bigarray_mmap__unix.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ocaml/patches/patch-otherlibs_bigarray_mmap__unix.c Wed Jul 06 14:19:51 2016 +0000
@@ -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>
Home |
Main Index |
Thread Index |
Old Index