$NetBSD: patch-ab,v 1.13 2005/12/07 16:45:47 joerg Exp $

--- src/af/util/xp/ut_iconv.cpp.orig	2005-07-08 16:22:11.000000000 +0000
+++ src/af/util/xp/ut_iconv.cpp
@@ -68,7 +68,8 @@ extern "C" {
 (defined (__MACH__) && defined (__APPLE__)) || \
 (defined(TARGET_OS_MAC) && TARGET_OS_MAC) || \
 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 && !defined(__DragonFly__))
 
 #define ICONV_CONST const
 #else
