From: Guillem Jover Date: Wed, 25 May 2011 19:02:40 +0000 (+0200) Subject: Define _SYS_CDEFS_H and _SYS_CDEFS_H after including X-Git-Tag: 0.3.0~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=71e5db4cde2f194cc9a93d3d2e1b524bf11e7c01;p=thirdparty%2Flibbsd.git Define _SYS_CDEFS_H and _SYS_CDEFS_H after including 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. --- 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 #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