diff options
author | 2008-12-21 09:59:24 +0000 | |
---|---|---|
committer | 2008-12-21 09:59:24 +0000 | |
commit | f512e359af83791c48d3a38f041b69b51cc4b54f (patch) | |
tree | b2617117d29b899323ff0c0de8ed67a4afc21c27 | |
parent | - AUTH PLAIN may receive credentials as a parameter to AUTH or on a (diff) | |
download | wireguard-openbsd-f512e359af83791c48d3a38f041b69b51cc4b54f.tar.xz wireguard-openbsd-f512e359af83791c48d3a38f041b69b51cc4b54f.zip |
Teach the header files not to bail out if pcc is used instead of gcc.
Ok deraadt@.
-rw-r--r-- | sys/sys/cdefs.h | 8 | ||||
-rw-r--r-- | sys/sys/stdarg.h | 4 |
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. */ |