summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAnders Magnusson <ragge@cvs.openbsd.org>2008-12-21 09:59:25 +0000
committerAnders Magnusson <ragge@cvs.openbsd.org>2008-12-21 09:59:25 +0000
commitf4fa80d696e6e0e36d6beb56e606b6f7a89ec6de (patch)
treee0ace65ab30182622782edb868b520f148dc76cf /sys
parentcd4ff1f6087887da63195bf2e74dd313bb883770 (diff)
Teach the header files not to bail out if pcc is used instead of gcc.
Ok deraadt@.
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/cdefs.h8
-rw-r--r--sys/sys/stdarg.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h
index b9b09760aa9..d66721d8e5f 100644
--- a/sys/sys/cdefs.h
+++ b/sys/sys/cdefs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cdefs.h,v 1.26 2007/09/18 19:55:16 otto Exp $ */
+/* $OpenBSD: cdefs.h,v 1.27 2008/12/21 09:59:24 ragge Exp $ */
/* $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $ */
/*
@@ -116,7 +116,7 @@
* the distribution version of 2.5.5).
*/
-#if !__GNUC_PREREQ__(2, 5)
+#if !__GNUC_PREREQ__(2, 5) && !defined(__PCC__)
#define __attribute__(x) /* delete __attribute__ if non-gcc or gcc1 */
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
#define __dead __volatile
@@ -171,7 +171,7 @@
#define __pure
#endif
-#if __GNUC_PREREQ__(2, 7)
+#if __GNUC_PREREQ__(2, 7) || defined(__PCC__)
#define __packed __attribute__((__packed__))
#elif defined(lint)
#define __packed
@@ -181,7 +181,7 @@
#define __extension__
#endif
-#if __GNUC_PREREQ__(2, 8)
+#if __GNUC_PREREQ__(2, 8) || defined(__PCC__)
#define __statement(x) __extension__(x)
#elif defined(lint)
#define __statement(x) (0)
diff --git a/sys/sys/stdarg.h b/sys/sys/stdarg.h
index 4b7786bb1a2..2f758d78b0a 100644
--- a/sys/sys/stdarg.h
+++ b/sys/sys/stdarg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdarg.h,v 1.5 2008/10/23 21:25:08 kettenis Exp $ */
+/* $OpenBSD: stdarg.h,v 1.6 2008/12/21 09:59:24 ragge Exp $ */
/*
* Copyright (c) 2003, 2004 Marc espie <espie@openbsd.org>
*
@@ -20,7 +20,7 @@
#include <sys/cdefs.h>
-#if defined(__GNUC__) && __GNUC__ >= 3
+#if (defined(__GNUC__) && __GNUC__ >= 3) || defined(__PCC__)
/* Define __gnuc_va_list. */