From 172a83d72491f90f6191be1040ef8b2e1789bd2e Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 13 May 2006 19:14:12 +0000 Subject: r15573: Fix build of systems that have iconv headers in non-standard locations Split of system/locale.h header from system/iconv.h Previously, iconv wasn't being used on these systems (This used to be commit aa6d66fda69779d1c2948a1aca85dbd5208f1cba) --- source4/include/system/config.m4 | 2 +- source4/include/system/iconv.h | 8 -------- source4/include/system/locale.h | 29 +++++++++++++++++++++++++++++ 3 files changed, 30 insertions(+), 9 deletions(-) create mode 100644 source4/include/system/locale.h (limited to 'source4/include') diff --git a/source4/include/system/config.m4 b/source4/include/system/config.m4 index 2c62b571e0..8e7448bbe4 100644 --- a/source4/include/system/config.m4 +++ b/source4/include/system/config.m4 @@ -30,7 +30,7 @@ AC_CHECK_HEADERS(sys/capability.h) # passwd AC_CHECK_HEADERS(grp.h sys/id.h compat.h shadow.h sys/priv.h pwd.h sys/security.h) -# iconv +# locale AC_CHECK_HEADERS(ctype.h locale.h) # glob diff --git a/source4/include/system/iconv.h b/source4/include/system/iconv.h index d9111bb07e..96500dbfac 100644 --- a/source4/include/system/iconv.h +++ b/source4/include/system/iconv.h @@ -27,14 +27,6 @@ #include #endif -#ifdef HAVE_CTYPE_H -#include -#endif - -#ifdef HAVE_LOCALE_H -#include -#endif - /* needed for some systems without iconv. Doesn't really matter what error code we use */ #ifndef EILSEQ diff --git a/source4/include/system/locale.h b/source4/include/system/locale.h new file mode 100644 index 0000000000..e4be4a128b --- /dev/null +++ b/source4/include/system/locale.h @@ -0,0 +1,29 @@ +/* + Unix SMB/CIFS implementation. + + locale include wrappers + + Copyright (C) Andrew Tridgell 2004 + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#ifdef HAVE_CTYPE_H +#include +#endif + +#ifdef HAVE_LOCALE_H +#include +#endif -- cgit