diff options
author | Tony Cook <tony@develop-help.com> | 2021-06-24 14:49:55 +1000 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2021-08-11 14:40:22 +1000 |
commit | 68f1b6d700b9662cfdec43ceddbd086d4b59c87e (patch) | |
tree | 63621a829b468f50b903296b5259e9ebfa80ce02 /config_h.SH | |
parent | 7e12ee61fac08d210b4f192160a1de75771f27c9 (diff) | |
download | perl-68f1b6d700b9662cfdec43ceddbd086d4b59c87e.tar.gz |
only #include <xlocale.h> when it is actually needed
This header was originally only needed for builds on darwin and
FreeBSD, but was being included whenever it was detected.
This has caused problems when what was an internal header was
removed (from glibc) and in general wasn't needed anyway.
On FreeBSD only localeconv_l() requires xlocale.h, so we test
specifically for that.
Diffstat (limited to 'config_h.SH')
-rwxr-xr-x | config_h.SH | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/config_h.SH b/config_h.SH index 40a80e312e..834dc9f2ee 100755 --- a/config_h.SH +++ b/config_h.SH @@ -3142,8 +3142,12 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * available to return the name of the locale for a category mask. */ /* I_XLOCALE: - * This symbol, if defined, indicates to the C program that it should - * include <xlocale.h> to get uselocale() and its friends. + * This symbol, if defined, indicates to the C program that the + * xlocale.h header is available. See also NEED_XLOCALE_H. + */ +/* NEED_XLOCALE_H: + * This symbol, if defined, indicates that the C program should + * include <xlocale.h> to get newlocale() and its friends. */ #$d_newlocale HAS_NEWLOCALE /**/ #$d_freelocale HAS_FREELOCALE /**/ @@ -3151,6 +3155,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un #$d_duplocale HAS_DUPLOCALE /**/ #$d_querylocale HAS_QUERYLOCALE /**/ #$i_xlocale I_XLOCALE /**/ +#$xlocale_needed NEED_XLOCALE_H /**/ /* HAS_NEXTAFTER: * This symbol, if defined, indicates that the nextafter routine is |