]> Savannah Git Hosting - gnulib.git/commitdiff
strfmon_l: Fix compilation error with glibc 2.25.
authorBruno Haible <bruno@clisp.org>
Sun, 26 Nov 2017 23:26:01 +0000 (00:26 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 26 Nov 2017 23:26:01 +0000 (00:26 +0100)
Reported by Tom G. Christensen <tgc@jupiterrise.com>
in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.

* lib/monetary.in.h: Include also <locale.h>.

ChangeLog
lib/monetary.in.h

index 5152abb195083579dc657f77864f77982d55ed79..b95652c880e962207ee498ad3730aba9a9e9115b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2017-11-26  Bruno Haible  <bruno@clisp.org>
+
+       strfmon_l: Fix compilation error with glibc 2.25.
+       Reported by Tom G. Christensen <tgc@jupiterrise.com>
+       in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
+       * lib/monetary.in.h: Include also <locale.h>.
+
 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
 
        posixtm: remove PDS_LEADING_YEAR
index 52966c44d4a950b6415c7b99623fe89ced660620..945f1ae2ce61ebfe87d844b046166f4d3786e039 100644 (file)
 #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 <xlocale.h>
+#  include <xlocale.h>
+# endif
+/* Get locale_t on glibc 2.25.  */
+# include <locale.h>
 #endif
 
 /* Like in <stdio.h>.  */