summaryrefslogtreecommitdiff
path: root/editors/abiword/patches/patch-ac
blob: 56d20d645a06857c21f2e94b51fcf9adeb680a86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ac,v 1.9 2003/11/04 20:57:29 fredb 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