freebsd-ports/lang/gcc295/files/patch-aq
Tilman Keskinoz d8d9471610 Attempt to Fix build on -CURRENT
Good bye 2002! Happy new year 2003! (CET)

PR:		46483
Submitted by:	Stefan Farfeleder <stefan@fafoe.dyndns.org>
2002-12-31 23:00:02 +00:00

38 lines
1.4 KiB
Text

--- gcc/ginclude/stdarg.h.orig Sat May 8 03:52:35 1999
+++ gcc/ginclude/stdarg.h Sun Dec 22 16:21:14 2002
@@ -67,7 +67,7 @@
#ifndef __GNUC_VA_LIST
#define __GNUC_VA_LIST
-#if defined(__svr4__) || defined(_AIX) || defined(_M_UNIX) || defined(__NetBSD__)
+#if defined(__svr4__) || defined(_AIX) || defined(_M_UNIX) || defined(__NetBSD__) || defined(__FreeBSD__)
typedef char *__gnuc_va_list;
#else
typedef void *__gnuc_va_list;
@@ -181,6 +181,8 @@
#if !defined (_VA_LIST_) || defined (__BSD_NET2__) || defined (____386BSD____) || defined (__bsdi__) || defined (__sequent__) || defined (__FreeBSD__) || defined(WINNT)
/* The macro _VA_LIST_DEFINED is used in Windows NT 3.5 */
#ifndef _VA_LIST_DEFINED
+/* The macro _VA_LIST_DECLARED is used in FreeBSD 5.x */
+#ifndef _VA_LIST_DECLARED
/* The macro _VA_LIST is used in SCO Unix 3.2. */
#ifndef _VA_LIST
/* The macro _VA_LIST_T_H is used in the Bull dpx2 */
@@ -188,6 +190,7 @@
typedef __gnuc_va_list va_list;
#endif /* not _VA_LIST_T_H */
#endif /* not _VA_LIST */
+#endif /* not _VA_LIST_DECLARED */
#endif /* not _VA_LIST_DEFINED */
#if !(defined (__BSD_NET2__) || defined (____386BSD____) || defined (__bsdi__) || defined (__sequent__) || defined (__FreeBSD__))
#define _VA_LIST_
@@ -197,6 +200,9 @@
#endif
#ifndef _VA_LIST_DEFINED
#define _VA_LIST_DEFINED
+#endif
+#ifndef _VA_LIST_DECLARED
+#define _VA_LIST_DECLARED
#endif
#ifndef _VA_LIST_T_H
#define _VA_LIST_T_H