summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/local/iconv.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/source4/torture/local/iconv.c b/source4/torture/local/iconv.c
index 8057d4faf4..84bca802e9 100644
--- a/source4/torture/local/iconv.c
+++ b/source4/torture/local/iconv.c
@@ -23,6 +23,7 @@
#include "includes.h"
+#if HAVE_NATIVE_ICONV
/*
generate a UTF-16LE buffer for a given unicode codepoint
*/
@@ -240,7 +241,6 @@ static int test_buffer(uint8_t *inbuf, size_t size, const char *charset)
}
if (memcmp(buf3, inbuf, size) != 0) {
- int i;
printf("pull bytes mismatch:\n");
show_buf("inbuf", inbuf, size);
show_buf(" buf3", buf3, size);
@@ -305,3 +305,12 @@ BOOL torture_local_iconv(int dummy)
}
+#else
+
+BOOL torture_local_iconv(int dummy)
+{
+ printf("No native iconv library - can't run iconv test\n");
+ return True;
+}
+
+#endif