From 4a17f26292a92c07af99ab1a160f81d853c704d2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 1 Sep 2004 09:45:33 +0000 Subject: r2170: if we don't have a native iconv library then we can't build this test (This used to be commit 5cf9333f6021479d62cc99475f4fb9a19588f928) --- source4/torture/local/iconv.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'source4/torture') 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 -- cgit