summaryrefslogtreecommitdiff
path: root/Build/source/libs/icu
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-01-16 22:49:59 +0000
committerKarl Berry <karl@freefriends.org>2018-01-16 22:49:59 +0000
commit2e4a1344346d2a7528315dc2ce009121af2b44b9 (patch)
tree7abeec674cedc7276996f18abd69f69217b3ad63 /Build/source/libs/icu
parent30aa22dbd2e2adf3201d3bcbd83ae739c2d5c2de (diff)
define _ISOC99_SOURCE on netbsd
git-svn-id: svn://tug.org/texlive/trunk@46338 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/icu')
-rw-r--r--Build/source/libs/icu/TLpatches/ChangeLog4
-rw-r--r--Build/source/libs/icu/TLpatches/patch-19-netbsd24
-rw-r--r--Build/source/libs/icu/icu-src/source/common/uposixdefs.h4
3 files changed, 20 insertions, 12 deletions
diff --git a/Build/source/libs/icu/TLpatches/ChangeLog b/Build/source/libs/icu/TLpatches/ChangeLog
index 715ba31581d..5a9df50d3ec 100644
--- a/Build/source/libs/icu/TLpatches/ChangeLog
+++ b/Build/source/libs/icu/TLpatches/ChangeLog
@@ -1,3 +1,7 @@
+2018-01-16 Karl Berry <karl@freefriends.org>
+
+ * patch-19-netbsd [__NetBSD__]: new patch, defining _ISOC99_SOURCE.
+
2018-01-16 Karl Berry <karl@tug.org>
* patch-02-configure-solaris: add.
diff --git a/Build/source/libs/icu/TLpatches/patch-19-netbsd b/Build/source/libs/icu/TLpatches/patch-19-netbsd
index 3df67b21456..2c44d8141e0 100644
--- a/Build/source/libs/icu/TLpatches/patch-19-netbsd
+++ b/Build/source/libs/icu/TLpatches/patch-19-netbsd
@@ -1,15 +1,15 @@
- Per Marc Baudoin, tlbuild 17 Mar 2017 10:03:03.
+ Date: Sat, 13 Jan 2018 14:28:11 +0100
+ From: Marc Baudoin <babafou@babafou.eu.org>
+ tlbuild
-Not applied for icu-60.2, since they have a new U_HAVE_XLOCALE_H.
-
---- source/i18n/digitlst.cpp (revision 43522)
-+++ source/i18n/digitlst.cpp (working copy)
-@@ -61,7 +61,7 @@
+--- icu-src/source/common/uposixdefs.h (revision 46329)
++++ icu-src/source/common/uposixdefs.h (working copy)
+@@ -71,4 +71,8 @@
+ # define _STDC_C99
#endif
- #if U_USE_STRTOD_L
--# if U_PLATFORM_USES_ONLY_WIN32_API || U_PLATFORM == U_PF_CYGWIN
-+# if U_PLATFORM_USES_ONLY_WIN32_API || U_PLATFORM == U_PF_CYGWIN || defined(__NetBSD__)
- # include <locale.h>
- # else
- # include <xlocale.h>
++#if defined(__cplusplus) && defined(__NetBSD__)
++#define _ISOC99_SOURCE
++#endif
++
+ #endif /* __UPOSIXDEFS_H__ */
diff --git a/Build/source/libs/icu/icu-src/source/common/uposixdefs.h b/Build/source/libs/icu/icu-src/source/common/uposixdefs.h
index 9acd3ba264a..d1c27855840 100644
--- a/Build/source/libs/icu/icu-src/source/common/uposixdefs.h
+++ b/Build/source/libs/icu/icu-src/source/common/uposixdefs.h
@@ -71,4 +71,8 @@
# define _STDC_C99
#endif
+#if defined(__cplusplus) && defined(__NetBSD__)
+#define _ISOC99_SOURCE
+#endif
+
#endif /* __UPOSIXDEFS_H__ */