From: Bruno Haible Date: Sun, 26 Nov 2017 23:26:01 +0000 (+0100) Subject: strfmon_l: Fix compilation error with glibc 2.25. X-Git-Tag: v1.0~5814 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=d5aa1da12243e1ac20800b9ffc1be93b13fe2f5b;p=gnulib.git strfmon_l: Fix compilation error with glibc 2.25. Reported by Tom G. Christensen in . * lib/monetary.in.h: Include also . --- diff --git a/ChangeLog b/ChangeLog index 5152abb195..b95652c880 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2017-11-26 Bruno Haible + + strfmon_l: Fix compilation error with glibc 2.25. + Reported by Tom G. Christensen + in . + * lib/monetary.in.h: Include also . + 2017-11-24 Paul Eggert posixtm: remove PDS_LEADING_YEAR diff --git a/lib/monetary.in.h b/lib/monetary.in.h index 52966c44d4..945f1ae2ce 100644 --- a/lib/monetary.in.h +++ b/lib/monetary.in.h @@ -29,9 +29,13 @@ #ifndef _@GUARD_PREFIX@_MONETARY_H #define _@GUARD_PREFIX@_MONETARY_H -#if @GNULIB_STRFMON_L@ && @HAVE_XLOCALE_H@ +#if @GNULIB_STRFMON_L@ +# if @HAVE_XLOCALE_H@ /* Get locale_t on Mac OS X 10.12. */ -# include +# include +# endif +/* Get locale_t on glibc 2.25. */ +# include #endif /* Like in . */