From 40178dd81e829878bbc7dcbb51184f747421e84b Mon Sep 17 00:00:00 2001 From: "Timur I. Bakeyev" Date: Sun, 7 Jun 2009 12:39:22 +0000 Subject: [PATCH] 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 --- lib/replace/system/config.m4 | 2 +- lib/replace/system/locale.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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 #endif +#ifdef HAVE_LANGINFO_H +#include +#endif + #endif