зеркало из https://github.com/mozilla/pjs.git
Bugzilla bug #53902: a better way to fix the 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
This commit is contained in:
Родитель
b81816ca0d
Коммит
90fc91dd4e
|
@ -36,6 +36,7 @@
|
||||||
#define nspr_netbsd_defs_h___
|
#define nspr_netbsd_defs_h___
|
||||||
|
|
||||||
#include <sys/syscall.h>
|
#include <sys/syscall.h>
|
||||||
|
#include <sys/param.h> /* for __NetBSD_Version__ */
|
||||||
|
|
||||||
#define PR_LINKER_ARCH "netbsd"
|
#define PR_LINKER_ARCH "netbsd"
|
||||||
#define _PR_SI_SYSNAME "NetBSD"
|
#define _PR_SI_SYSNAME "NetBSD"
|
||||||
|
|
|
@ -52,7 +52,9 @@
|
||||||
** and requires array notation.
|
** and requires array notation.
|
||||||
*/
|
*/
|
||||||
#if (defined(LINUX) && defined(__powerpc__)) || defined(WIN16) || \
|
#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]
|
#define VARARGS_ASSIGN(foo, bar) foo[0] = bar[0]
|
||||||
#else
|
#else
|
||||||
#define VARARGS_ASSIGN(foo, bar) (foo) = (bar)
|
#define VARARGS_ASSIGN(foo, bar) (foo) = (bar)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче