pkgsrc/textproc/icu/patches/patch-i18n_digitlst.cpp
maya f03707add3 icu: never include xlocale.h, always use locale.h
This was a glibc header, whereas locale.h is a POSIX one.
glibc went ahead and removed it in the new version.

change suggested by Thomas Orgis on tech-pkg but probably not applied
exactly.
2017-10-05 22:50:30 +00:00

20 lines
528 B
C++

$NetBSD: patch-i18n_digitlst.cpp,v 1.3 2017/10/05 22:50:30 maya Exp $
Never include xlocale.h - not portable header, also removed in current
glibc.
--- i18n/digitlst.cpp.orig 2017-01-20 00:20:31.000000000 +0000
+++ i18n/digitlst.cpp
@@ -61,11 +61,7 @@
#endif
#if U_USE_STRTOD_L
-# if U_PLATFORM_USES_ONLY_WIN32_API || U_PLATFORM == U_PF_CYGWIN
-# include <locale.h>
-# else
-# include <xlocale.h>
-# endif
+# include <locale.h>
#endif
// ***************************************************************************