From d6067ec16649b3ebb477bd1023ddf48809b78837 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 26 Jun 2006 13:06:51 +0000 Subject: [PATCH] Portability to BSD/OS 4.2. --- lib/ChangeLog | 4 ++++ lib/stdint_.h | 3 ++- m4/ChangeLog | 4 ++++ m4/stdint.m4 | 4 ++-- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index e92626912e..7e4bb63b03 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,7 @@ +2006-06-23 Mark D. Baushke + + * stdlib_.h: Treat BSD/OS like OpenBSD. + 2006-06-23 Bruno Haible * stdlib_.h: Treat IRIX like OpenBSD. diff --git a/lib/stdint_.h b/lib/stdint_.h index 3e303ad15a..b3f168c313 100644 --- a/lib/stdint_.h +++ b/lib/stdint_.h @@ -33,11 +33,12 @@ #if defined(__FreeBSD__) && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4) # include #endif -#if defined(__OpenBSD__) || defined(__sgi) +#if defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi) /* In OpenBSD 3.8, includes , which defines int{8,16,32,64}_t, uint{8,16,32,64}_t and __BIT_TYPES_DEFINED__. includes and also defines intptr_t and uintptr_t. */ + /* BSD/OS 4.2 is similar, but doesn't have */ /* IRIX 6.5 has , and defines some of these types as well. */ # include diff --git a/m4/ChangeLog b/m4/ChangeLog index fdcd998ec6..f65519b837 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,7 @@ +2006-06-23 Mark D. Baushke + + * stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD. + 2006-06-26 Simon Josefsson * inet_ntop.m4: Don't check for sys/types.h, we assume it is diff --git a/m4/stdint.m4 b/m4/stdint.m4 index 733c3c6021..63d16566cf 100644 --- a/m4/stdint.m4 +++ b/m4/stdint.m4 @@ -1,4 +1,4 @@ -# stdint.m4 serial 8 +# stdint.m4 serial 9 dnl Copyright (C) 2001-2002, 2004-2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -90,7 +90,7 @@ typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1]; #if defined(__FreeBSD__) && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4) # include #endif -#if defined(__OpenBSD__) || defined(__sgi) +#if defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi) # include # if HAVE_INTTYPES_H # include FULL_PATH_INTTYPES_H -- 2.30.2