diff options
author | Timur I. Bakeyev <timur@com.bat.ru> | 2009-06-07 12:39:22 +0000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-06-08 13:20:51 +0200 |
commit | 40178dd81e829878bbc7dcbb51184f747421e84b (patch) | |
tree | 6d9a1ae134aede17fe00e91ae5c8bbf64d67dc56 | |
parent | 11332e106c8654f798177e089b332263bfb81e18 (diff) | |
download | samba-40178dd81e829878bbc7dcbb51184f747421e84b.tar.gz samba-40178dd81e829878bbc7dcbb51184f747421e84b.tar.bz2 samba-40178dd81e829878bbc7dcbb51184f747421e84b.zip |
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>
-rw-r--r-- | lib/replace/system/config.m4 | 2 | ||||
-rw-r--r-- | lib/replace/system/locale.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/replace/system/config.m4 b/lib/replace/system/config.m4 index e2196586ad..39c2f58283 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 e73a9bb274..504a3bb470 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 |