pkgsrc/editors/abiword/patches/patch-ab
reed 91d555c0a3 This fix was lost in last update.
This was my PR pkg/23368. And fredb fixed for me on 04/Nov/2003.
Old patch was put in place accidently on 26/Dec/2003.
This fixes the problem with ut_iconv.cpp and invalid conversion
under gcc 3.3.x.
2004-03-30 00:53:31 +00:00

15 lines
673 B
Text

$NetBSD: patch-ab,v 1.9 2004/03/30 00:53:31 reed Exp $
--- src/af/util/xp/ut_types.h.orig 2003-10-21 09:25:23.000000000 -0700
+++ src/af/util/xp/ut_types.h
@@ -259,7 +259,9 @@ 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