Files
pkgsrc-ng/www/nvu/patches/patch-nsprpub_pr_src_io_prprf_c
2013-09-26 17:14:40 +02:00

19 lines
762 B
Plaintext

$NetBSD: patch-nsprpub_pr_src_io_prprf_c,v 1.2 2013/03/24 16:45:55 joerg Exp $
Use valid va_list handling.
--- nsprpub/pr/src/io/prprf.c.orig 2004-03-09 03:18:19.000000000 +0000
+++ nsprpub/pr/src/io/prprf.c
@@ -51,7 +51,10 @@
** Note: on some platforms va_list is defined as an array,
** and requires array notation.
*/
-#if (defined(LINUX) && defined(__x86_64__))
+#if __STDC__ >= 19990101 || defined(__NetBSD__) || defined(__FreeBSD__) || \
+ defined(__OpenBSD__) || defined(__DragonFly__)
+#define VARARGS_ASSIGN(foo, bar) va_copy((foo), (bar))
+#elif (defined(LINUX) && defined(__x86_64__))
#define VARARGS_ASSIGN(foo, bar) __va_copy((foo), (bar))
#elif (defined(LINUX) && defined(__powerpc__)) || \
(defined(LINUX) && defined(__s390__)) || \