$NetBSD: patch-ac,v 1.1.1.1 2003/12/26 18:20:28 wiz Exp $

--- src/af/util/xp/ut_types.h.orig	2002-03-20 11:44:26.000000000 -0600
+++ src/af/util/xp/ut_types.h
@@ -242,7 +242,10 @@ ABI_EXPORT void * UT_calloc ( UT_uint32 
 (defined (__MACH__) && defined (__APPLE__)) || \
 (defined(TARGET_OS_MAC) && TARGET_OS_MAC) || \
 defined(__BEOS__) || defined (__AIX__) || \
-(defined(__linux__) && defined(__powerpc__) && (__GLIBC__ <= 2) && (__GLIBC_MINOR__ <= 1))
+(defined(__linux__) && defined(__powerpc__) && (__GLIBC__ <= 2) && (__GLIBC_MINOR__ <= 1)) || \
+defined(__NetBSD__) || \
+(defined(_LIBICONV_VERSION) && _LIBICONV_VERSION >= 0x0109)
+
 
 #define ICONV_CONST const
 #else
