Add langinfo.h to the system/locale.h
authorTimur I. Bakeyev <timur@com.bat.ru>
Sun, 7 Jun 2009 12:39:22 +0000 (12:39 +0000)
committerStefan Metzmacher <metze@samba.org>
Mon, 8 Jun 2009 11:20:51 +0000 (13:20 +0200)
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>
lib/replace/system/config.m4
lib/replace/system/locale.h

index e2196586ad63a83d7fd9e4d8605f8a200b81ff35..39c2f58283b07e0c96080525aa5caa24f3506665 100644 (file)
@@ -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)
index e73a9bb2748fddf821fc7cd34c4977f1c000c3c1..504a3bb470ea36ef4681d73684dfa9bb3ef79df7 100644 (file)
@@ -35,4 +35,8 @@
 #include <locale.h>
 #endif
 
+#ifdef HAVE_LANGINFO_H
+#include <langinfo.h>
+#endif
+
 #endif