--- icu/source/i18n/digitlst.cpp	2016-10-27 04:37:56.000000000 +0300
+++ icu/source/i18n/digitlst.cpp.orig	2019-04-05 01:21:53.268896065 +0300
@@ -61,7 +61,8 @@
 #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__) || ((__GLIBC_MINOR__ >= 26) && !defined(__APPLE__))
 #   include <locale.h>
 # else
 #   include <xlocale.h>

