summaryrefslogtreecommitdiff
path: root/dev-libs/libxslt/files/libxslt-1.1.30-glibc226.patch
blob: e1e97229d60fbcd8c38a9e304920dfd41b446638 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
diff --git a/configure.in b/configure.in
index d6aa366..20aafb8 100644
--- a/configure.in
+++ b/configure.in
@@ -165,11 +165,11 @@ XSLT_LOCALE_XLOCALE=0
 XSLT_LOCALE_WINAPI=0
 
 AC_CHECK_HEADERS([locale.h xlocale.h])
-if test $ac_cv_header_xlocale_h = yes; then
+if test $ac_cv_header_locale_h = yes; then
 dnl
 dnl Check for generic locale_t declaration
 dnl
-AC_MSG_CHECKING([if xlocale program link])
+AC_MSG_CHECKING([if locale program link])
 AC_LINK_IFELSE([AC_LANG_PROGRAM([[
 #ifdef HAVE_LOCALE_H
 #include <locale.h>
diff --git a/libxslt/xsltlocale.h b/libxslt/xsltlocale.h
index 8a9ca15..2f64424 100644
--- a/libxslt/xsltlocale.h
+++ b/libxslt/xsltlocale.h
@@ -17,7 +17,9 @@
 #ifdef XSLT_LOCALE_XLOCALE
 
 #include <locale.h>
+#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ < 26
 #include <xlocale.h>
+#endif
 
 #ifdef __GLIBC__
 /*locale_t is defined only if _GNU_SOURCE is defined*/