If defined(_KERNEL), #include <sys/types.h>, otherwise #include
<stdbool.h>, for the bool definition that we need. cpu.h only got the definition by chance, before.
This commit is contained in:
parent
098e562dfd
commit
103f0ed593
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cpu.h,v 1.11 2009/03/07 21:59:25 ad Exp $ */
|
||||
/* $NetBSD: cpu.h,v 1.12 2009/03/27 16:07:37 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
@ -400,6 +400,12 @@ void x86_bus_space_mallocok(void);
|
||||
|
||||
#endif /* _KERNEL || __KMEMUSER */
|
||||
|
||||
#if defined(_KERNEL)
|
||||
#include <sys/types.h>
|
||||
#else
|
||||
#include <stdbool.h>
|
||||
#endif /* _KERNEL */
|
||||
|
||||
/*
|
||||
* CTL_MACHDEP definitions.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user