icu: only patch-out xlocale if using glibc

+3 -1
+3 -1
pkgs/development/libraries/icu/base.nix
··· 26 ''; 27 28 # https://sourceware.org/glibc/wiki/Release/2.26#Removal_of_.27xlocale.h.27 29 - postPatch = "substituteInPlace i18n/digitlst.cpp --replace '<xlocale.h>' '<locale.h>'"; 30 31 inherit patchFlags patches; 32
··· 26 ''; 27 28 # https://sourceware.org/glibc/wiki/Release/2.26#Removal_of_.27xlocale.h.27 29 + postPatch = if stdenv ? glibc 30 + then "substituteInPlace i18n/digitlst.cpp --replace '<xlocale.h>' '<locale.h>'" 31 + else null; # won't find locale_t on darwin 32 33 inherit patchFlags patches; 34