summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTimur I. Bakeyev <timur@com.bat.ru>2009-06-07 12:39:22 +0000
committerStefan Metzmacher <metze@samba.org>2009-06-08 13:20:51 +0200
commit40178dd81e829878bbc7dcbb51184f747421e84b (patch)
tree6d9a1ae134aede17fe00e91ae5c8bbf64d67dc56 /lib
parent11332e106c8654f798177e089b332263bfb81e18 (diff)
downloadsamba-40178dd81e829878bbc7dcbb51184f747421e84b.tar.gz
Add langinfo.h to the system/locale.h
This patch for Samba4. It's not really inspired by any real need, just for the consistency. We define replace/system/locale.h as a generic header, that includes all locale related headers and we are using nl_langinfo at least in Samba3. So, it would be consistent to add yet another locale-related header to the set of locale.h headers. Here is the patch. With regards, Timur Bakeyev. Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/system/config.m42
-rw-r--r--lib/replace/system/locale.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/replace/system/config.m4 b/lib/replace/system/config.m4
index e2196586ad6..39c2f58283b 100644
--- a/lib/replace/system/config.m4
+++ b/lib/replace/system/config.m4
@@ -119,7 +119,7 @@ AC_VERIFY_C_PROTOTYPE([struct group *getgrent_r(struct group *src, char *buf, si
AC_CHECK_FUNCS(getgrouplist)
# locale
-AC_CHECK_HEADERS(ctype.h locale.h)
+AC_CHECK_HEADERS(ctype.h locale.h langinfo.h)
# glob
AC_CHECK_HEADERS(fnmatch.h)
diff --git a/lib/replace/system/locale.h b/lib/replace/system/locale.h
index e73a9bb2748..504a3bb470e 100644
--- a/lib/replace/system/locale.h
+++ b/lib/replace/system/locale.h
@@ -35,4 +35,8 @@
#include <locale.h>
#endif
+#ifdef HAVE_LANGINFO_H
+#include <langinfo.h>
+#endif
+
#endif