summaryrefslogtreecommitdiff
path: root/editors/abiword1/patches/patch-ac
blob: de1558276fe8c1d76d531de141ebb5e9af28fc98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$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