Fixing build bustage on OpenBSD 3.5 (bug 256877). Patch by ju1i3n.news@free.fr and jon@rekai.net, r+sr=jst@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@161581 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -58,21 +58,28 @@
|
||||
#ifndef __cplusplus
|
||||
typedef int bool;
|
||||
#endif
|
||||
#elif defined(bsdi) || defined(FREEBSD)
|
||||
#elif defined(bsdi) || defined(FREEBSD) || defined(OPENBSD)
|
||||
/*
|
||||
* BSD/OS and FreeBSD ship sys/types.h that define int32_t and u_int32_t.
|
||||
* BSD/OS, FreeBSD, and OpenBSD ship sys/types.h that define int32_t and
|
||||
* u_int32_t.
|
||||
*/
|
||||
#include <sys/types.h>
|
||||
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
#if defined(bsdi)
|
||||
#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