summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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__ */