summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2000-10-10 04:40:43 +0000
committerwtc%netscape.com <devnull@localhost>2000-10-10 04:40:43 +0000
commitc2d06c7759a5205f260f1c88ea5e6d50b81f6767 (patch)
tree2aee5125344bcc8a9ed671970df9681630880bb6
parentb981cc8a40510618329cfd94cde8d4fb023ae5c2 (diff)
downloadnspr-hg-c2d06c7759a5205f260f1c88ea5e6d50b81f6767.tar.gz
Bugzilla bug #53902: a better way to fix a va_list compilation problem
in an older version of NetBSD/macppc. Thanks to Martin Husemann <martin@NetBSD.ORG> for the patch. Modified files: _netbsd.h, prprf.c (NSPRPUB_CLIENT_BRANCH)
-rw-r--r--pr/include/md/_netbsd.h1
-rw-r--r--pr/src/io/prprf.c4
2 files changed, 4 insertions, 1 deletions
diff --git a/pr/include/md/_netbsd.h b/pr/include/md/_netbsd.h
index 45b04493..0d076db8 100644
--- a/pr/include/md/_netbsd.h
+++ b/pr/include/md/_netbsd.h
@@ -20,6 +20,7 @@
#define nspr_netbsd_defs_h___
#include <sys/syscall.h>
+#include <sys/param.h> /* for __NetBSD_Version__ */
#define PR_LINKER_ARCH "netbsd"
#define _PR_SI_SYSNAME "NetBSD"
diff --git a/pr/src/io/prprf.c b/pr/src/io/prprf.c
index 1da92e84..92856359 100644
--- a/pr/src/io/prprf.c
+++ b/pr/src/io/prprf.c
@@ -36,7 +36,9 @@
** and requires array notation.
*/
#if (defined(LINUX) && defined(__powerpc__)) || defined(WIN16) || \
- defined(QNX) || (defined(__NetBSD__) && defined(__powerpc__))
+ defined(QNX) || \
+ (defined(__NetBSD__) && defined(__powerpc__) && \
+ __NetBSD_Version__ < 105000000)
#define VARARGS_ASSIGN(foo, bar) foo[0] = bar[0]
#else
#define VARARGS_ASSIGN(foo, bar) (foo) = (bar)