Since this is contrib code, create an upstreamable version of my
change. Now on FreeBSD and NetBSD if _STANDALONE is defined, we include the kernel version with alloances for the quirky differences between the two. Sponsored by: Netflix
This commit is contained in:
parent
493bc990c2
commit
aa826ad764
@ -55,12 +55,16 @@
|
||||
#define UNUSED __attribute__((unused))
|
||||
#endif
|
||||
|
||||
#if (defined(_KERNEL) || defined(_STANDALONE))
|
||||
#if (defined(__FreeBSD__) || defined(__NetBSD__)) && (defined(_KERNEL) || defined(_STANDALONE))
|
||||
/*
|
||||
* Kernel and boot environment can't use normal headers,
|
||||
* so use the equivalent system headers.
|
||||
*/
|
||||
#ifdef __FreeBSD__
|
||||
# include <sys/limits.h>
|
||||
#else
|
||||
# include <machine/limits.h>
|
||||
#endif
|
||||
# include <sys/stdint.h>
|
||||
# include <sys/types.h>
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user