Bug 259325 build error on OpenBSD
p=ajschult@verizon.net r=benjamin sr=jst a=asa git-svn-id: svn://10.0.0.236/trunk@173607 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -67,19 +67,15 @@
|
||||
|
||||
/*
|
||||
* BSD/OS ships no header that defines uint32_t, nor bool (for C)
|
||||
* OpenBSD ships no header that defines uint32_t, but provides bool as a
|
||||
* macro.
|
||||
* OpenBSD ships no header that defines uint32_t and using its bool macro is
|
||||
* unsafe.
|
||||
*/
|
||||
#if defined(bsdi) || defined(OPENBSD)
|
||||
typedef u_int32_t uint32_t;
|
||||
|
||||
#if defined(bsdi)
|
||||
#if !defined(__cplusplus)
|
||||
typedef int bool;
|
||||
#endif
|
||||
#else /* OPENBSD is defined, so use its bool */
|
||||
#include <stdbool.h>
|
||||
#endif
|
||||
#else
|
||||
/*
|
||||
* FreeBSD defines uint32_t and bool.
|
||||
|
||||
Reference in New Issue
Block a user