]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
Define _SYS_CDEFS_H and _SYS_CDEFS_H after including <sys/cdefs.h>
authorGuillem Jover <guillem@hadrons.org>
Wed, 25 May 2011 19:02:40 +0000 (21:02 +0200)
committerGuillem Jover <guillem@hadrons.org>
Sat, 28 May 2011 08:31:06 +0000 (10:31 +0200)
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.

include/bsd/sys/cdefs.h

index b1a0f8aebdeaa045374fa74b24ae6a1e55300df3..0cd5d38812f090a7186eec80a8e2da691fcf30dc 100644 (file)
 #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