pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/fdtools Improve _XOPEN_SOURCE handling on Sun...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b29d632ad9e2
branches:  trunk
changeset: 389017:b29d632ad9e2
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Mon Dec 17 17:04:38 2018 +0000

description:
Improve _XOPEN_SOURCE handling on SunOS. Should fix SmartOS build.

diffstat:

 sysutils/fdtools/distinfo                                                |   3 +-
 sysutils/fdtools/patches/patch-src_.mkmed-data_src_prjlibs-c_standards.h |  24 ++++++++++
 2 files changed, 26 insertions(+), 1 deletions(-)

diffs (44 lines):

diff -r eec7e1d29cca -r b29d632ad9e2 sysutils/fdtools/distinfo
--- a/sysutils/fdtools/distinfo Mon Dec 17 16:32:18 2018 +0000
+++ b/sysutils/fdtools/distinfo Mon Dec 17 17:04:38 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2018/05/28 12:00:39 schmonz Exp $
+$NetBSD: distinfo,v 1.3 2018/12/17 17:04:38 schmonz Exp $
 
 SHA1 (fdtools-2015.03.28.tar.bz2) = 7bd1c9e067df8297e1f4bc430c33903899585aee
 RMD160 (fdtools-2015.03.28.tar.bz2) = d1bfed8c1718b5ec178cc763416f677f4cc26f0d
@@ -6,5 +6,6 @@
 Size (fdtools-2015.03.28.tar.bz2) = 40057 bytes
 SHA1 (patch-conf-compile_defaults_host__compile.sh) = d30f146419e30cd717c299b8196918db3095f3e8
 SHA1 (patch-conf-compile_defaults_host__link.sh) = 77e80f0ed9adc0ead6f9afea9b76dbb630ff2ce0
+SHA1 (patch-src_.mkmed-data_src_prjlibs-c_standards.h) = aa91710e0b5610ce1b1c705d5837f876fb3afea5
 SHA1 (patch-src_recvfd.c) = 4fe086cae8fa9623e29954cb03ee5a63a72d25af
 SHA1 (patch-src_sigsched.c) = ed4cf2111ab65fb80f5cbcfd6aa0c49db12a845a
diff -r eec7e1d29cca -r b29d632ad9e2 sysutils/fdtools/patches/patch-src_.mkmed-data_src_prjlibs-c_standards.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/fdtools/patches/patch-src_.mkmed-data_src_prjlibs-c_standards.h  Mon Dec 17 17:04:38 2018 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_.mkmed-data_src_prjlibs-c_standards.h,v 1.1 2018/12/17 17:04:38 schmonz Exp $
+
+Handle _XOPEN_SOURCE on SunOS.
+
+--- src/.mkmed-data/src/prjlibs-c/standards.h.orig     2015-03-28 22:14:51.231617623 +0000
++++ src/.mkmed-data/src/prjlibs-c/standards.h
+@@ -7,13 +7,16 @@
+ #endif
+ #endif
+ #endif
+-#define _XOPEN_SOURCE_EXTENDED 1
+ #ifndef _BSD_SOURCE
+ #define _BSD_SOURCE 1
+ #endif
+ #ifdef __sun
+ #undef _XOPEN_SOURCE
++#if (__STDC_VERSION__-0 < 199901L)
+ #define _XOPEN_SOURCE 500
++#else
++#define _XOPEN_SOURCE 600
++#endif
+ #ifndef __EXTENSIONS__
+ #define __EXTENSIONS__ 1
+ #endif



Home | Main Index | Thread Index | Old Index