summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormaja <maja@openbsd.org>1996-09-27 17:34:44 +0000
committermaja <maja@openbsd.org>1996-09-27 17:34:44 +0000
commitbc4e46a03e2bdc204dc86869764c51aae3d0d534 (patch)
tree4f864d5cb252a6d122c4cd3fba6efbb9e64f35a1
parentNow use libc version. (diff)
downloadwireguard-openbsd-bc4e46a03e2bdc204dc86869764c51aae3d0d534.tar.xz
wireguard-openbsd-bc4e46a03e2bdc204dc86869764c51aae3d0d534.zip
Make kernel compile even if we are using strange versions of gcc. -moj
-rw-r--r--sys/sys/cdefs.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h
index a56bf7a79b2..1a1687590a5 100644
--- a/sys/sys/cdefs.h
+++ b/sys/sys/cdefs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cdefs.h,v 1.4 1996/04/21 22:31:30 deraadt Exp $ */
+/* $OpenBSD: cdefs.h,v 1.5 1996/09/27 17:34:44 maja Exp $ */
/* $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $ */
/*
@@ -42,6 +42,14 @@
#ifndef _CDEFS_H_
#define _CDEFS_H_
+/*
+ * Gratuitous NetBSD gcc extensions we can do without.
+ */
+
+#ifdef __KPRINTF_ATTRIBUTE__
+#undef __KPRINTF_ATTRIBUTE__
+#endif
+
#include <machine/cdefs.h>
#if defined(__cplusplus)