diff options
author | schmonz <schmonz@pkgsrc.org> | 2018-12-17 17:04:38 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2018-12-17 17:04:38 +0000 |
commit | df79b8f0a43f687d1d4d1ff881cefb22e18db696 (patch) | |
tree | 9192b8920ebc12fe787e2a12eed16c20c16ab34e /sysutils/fdtools/patches | |
parent | afff87c3a827803d2a0caa0ed311a1d02e667315 (diff) | |
download | pkgsrc-df79b8f0a43f687d1d4d1ff881cefb22e18db696.tar.gz |
Improve _XOPEN_SOURCE handling on SunOS. Should fix SmartOS build.
Diffstat (limited to 'sysutils/fdtools/patches')
-rw-r--r-- | sysutils/fdtools/patches/patch-src_.mkmed-data_src_prjlibs-c_standards.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sysutils/fdtools/patches/patch-src_.mkmed-data_src_prjlibs-c_standards.h b/sysutils/fdtools/patches/patch-src_.mkmed-data_src_prjlibs-c_standards.h new file mode 100644 index 00000000000..be639369b72 --- /dev/null +++ b/sysutils/fdtools/patches/patch-src_.mkmed-data_src_prjlibs-c_standards.h @@ -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 |