Reapply r326600 (by imp):
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
fd28fec2f0
commit
dd6565b7a6
@ -72,12 +72,16 @@
|
||||
#error Unsupported target
|
||||
#endif
|
||||
|
||||
#if defined(__NetBSD__) && (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