summaryrefslogtreecommitdiff
path: root/source/include
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-05-24 17:57:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:08:35 -0500
commit7937932615434a59c84d8a1b81e368f6a5f8e429 (patch)
tree028219d065f5f01f388f57af5f08c3457c9e11c5 /source/include
parent55843863ff1f92be9918c845e208a30660ed2ae5 (diff)
downloadsamba-7937932615434a59c84d8a1b81e368f6a5f8e429.tar.gz
r15870: Improve detection of iconv - should prevent HAVE_ICONV_H being
defined when the installed iconv library doesn't match our criteria as well as some other minor fixes.
Diffstat (limited to 'source/include')
-rw-r--r--source/include/system/iconv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/include/system/iconv.h b/source/include/system/iconv.h
index 96500dbfacd..d5cbe84d8fe 100644
--- a/source/include/system/iconv.h
+++ b/source/include/system/iconv.h
@@ -20,12 +20,14 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#ifdef HAVE_NATIVE_ICONV
#ifdef HAVE_ICONV_H
#include <iconv.h>
#endif
#ifdef HAVE_GICONV_H
#include <giconv.h>
#endif
+#endif
/* needed for some systems without iconv. Doesn't really matter
what error code we use */