summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/registry/reg_parse_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/registry/reg_parse_internal.h b/source3/registry/reg_parse_internal.h
index 56e2127ca1..153d48cb31 100644
--- a/source3/registry/reg_parse_internal.h
+++ b/source3/registry/reg_parse_internal.h
@@ -29,7 +29,7 @@
struct cbuf;
#define USE_NATIVE_ICONV
-#ifdef USE_NATIVE_ICONV
+#if defined USE_NATIVE_ICONV && defined HAVE_NATIVE_ICONV
# define smb_iconv_t iconv_t
# define smb_iconv(CD, IPTR, ILEN, OPTR, OLEN) \
iconv(CD, (char**)(IPTR), ILEN, OPTR, OLEN)