summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2011-05-25 21:02:40 +0200
committerGuillem Jover <guillem@hadrons.org>2011-05-28 10:31:06 +0200
commit71e5db4cde2f194cc9a93d3d2e1b524bf11e7c01 (patch)
treef9137a678a7d6618aeaa0a46a5bef92bb46063a7
parent9d042171749b94510b071c9e800ed0d2a4e95bb9 (diff)
downloadlibbsd-71e5db4cde2f194cc9a93d3d2e1b524bf11e7c01.tar.gz
Define _SYS_CDEFS_H and _SYS_CDEFS_H after including <sys/cdefs.h>
This makes sure the “standard” inclusion protectors are in place, as at least some FreeBSD kernel headers expect these to be defined to do some sanity checks.
-rw-r--r--include/bsd/sys/cdefs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/bsd/sys/cdefs.h b/include/bsd/sys/cdefs.h
index b1a0f8a..0cd5d38 100644
--- a/include/bsd/sys/cdefs.h
+++ b/include/bsd/sys/cdefs.h
@@ -33,6 +33,16 @@
#include <sys/cdefs.h>
#endif
+/*
+ * Some kFreeBSD headers expect those macros to be set for sanity checks.
+ */
+#ifndef _SYS_CDEFS_H_
+#define _SYS_CDEFS_H_
+#endif
+#ifndef _SYS_CDEFS_H
+#define _SYS_CDEFS_H
+#endif
+
#ifndef __dead2
# define __dead2
#endif