From a7ae8309bf2e733105ca3f8b1f1f6881a5b546df Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Wed, 14 Jul 2004 22:57:48 +0000 Subject: [PATCH] Bug 251300 stdint.h missing in FreeBSD patch by jon@rekai.net r=jst sr=jst git-svn-id: svn://10.0.0.236/trunk@159213 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/modules/plugin/base/public/nptypes.h | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/mozilla/modules/plugin/base/public/nptypes.h b/mozilla/modules/plugin/base/public/nptypes.h index 88031e91c9f..0af43e085f2 100644 --- a/mozilla/modules/plugin/base/public/nptypes.h +++ b/mozilla/modules/plugin/base/public/nptypes.h @@ -58,18 +58,28 @@ #ifndef __cplusplus typedef int bool; #endif -#elif defined(bsdi) +#elif defined(bsdi) || defined(FREEBSD) /* - * BSD/OS ships sys/types.h that define int32_t and u_int32_t, but - * no header that defines uint32_t, nor bool (for C) + * BSD/OS and FreeBSD ship sys/types.h that define int32_t and u_int32_t. */ #include + /* + * BSD/OS ships no header that defines uint32_t, nor bool (for C) + */ + #if defined(bsdi) typedef u_int32_t uint32_t; #if !defined(__cplusplus) typedef int bool; #endif + #else + /* + * FreeBSD defines uint32_t and bool. + */ + #include + #include + #endif #else /* * For those that ship a standard C99 stdint.h header file, include