use va_copy() on all architectures (fixes many)

This commit is contained in:
pvalchev 2006-01-07 02:17:47 +00:00
parent 34b82f68df
commit 4549697fc0
2 changed files with 16 additions and 2 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.49 2005/11/15 09:21:51 wilfried Exp $
# $OpenBSD: Makefile,v 1.50 2006/01/07 02:17:47 pvalchev Exp $
COMMENT= "free cross-platform WYSIWYG word processor"
VERSION= 2.4.1
MAJORVER= ${VERSION:C/..$//}
DISTNAME= abiword-${VERSION}
PKGNAME= ${DISTNAME}p1
PKGNAME= ${DISTNAME}p2
CATEGORIES= editors
HOMEPAGE= http://www.abisource.com/

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-abi_src_af_util_xp_ut_string_class_cpp,v 1.4 2006/01/07 02:17:47 pvalchev Exp $
--- abi/src/af/util/xp/ut_string_class.cpp.orig Thu Jan 5 12:40:22 2006
+++ abi/src/af/util/xp/ut_string_class.cpp Thu Jan 5 12:41:53 2006
@@ -342,7 +342,9 @@ UT_printf_string_upper_bound (const char
return len;
}
-#if !defined (VA_COPY)
+#if !defined (VA_COPY) && defined(__OpenBSD__)
+# define VA_COPY(ap1, ap2) va_copy((ap1),(ap2))
+#elif !defined (VA_COPY)
# if defined (__GNUC__) && defined (__PPC__) && (defined (_CALL_SYSV) || defined (_WIN32) || defined(WIN32)) || defined(__s390__) || defined(__x86_64__)
# define VA_COPY(ap1, ap2) (*(ap1) = *(ap2))
# elif defined (VA_COPY_AS_ARRAY)