Bug 259325 build error on OpenBSD

p=ajschult@verizon.net r=benjamin sr=jst a=asa
This commit is contained in:
bugzilla%arlen.demon.co.uk 2005-05-19 21:49:42 +00:00
Родитель 7171ee6d52
Коммит 052195e7d9
1 изменённых файлов: 2 добавлений и 6 удалений

Просмотреть файл

@ -67,19 +67,15 @@
/* /*
* BSD/OS ships no header that defines uint32_t, nor bool (for C) * 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 * OpenBSD ships no header that defines uint32_t and using its bool macro is
* macro. * unsafe.
*/ */
#if defined(bsdi) || defined(OPENBSD) #if defined(bsdi) || defined(OPENBSD)
typedef u_int32_t uint32_t; typedef u_int32_t uint32_t;
#if defined(bsdi)
#if !defined(__cplusplus) #if !defined(__cplusplus)
typedef int bool; typedef int bool;
#endif #endif
#else /* OPENBSD is defined, so use its bool */
#include <stdbool.h>
#endif
#else #else
/* /*
* FreeBSD defines uint32_t and bool. * FreeBSD defines uint32_t and bool.