From: Bruno Haible Date: Sun, 7 Mar 2021 11:24:07 +0000 (+0100) Subject: sysexits: Fix for Haiku. X-Git-Tag: v1.0~3033 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c7c26eb67ead3094be7bd9c2fd7bf79f2a5b25c7;p=thirdparty%2Fgnulib.git sysexits: Fix for Haiku. * lib/sysexits.in.h: Don't assume that , when it exists, defines anything. * doc/glibc-headers/sysexits.texi: Mention the Haiku bug. --- diff --git a/ChangeLog b/ChangeLog index 8b5ed00d6d..a0c19fed68 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2021-03-07 Bruno Haible + + sysexits: Fix for Haiku. + * lib/sysexits.in.h: Don't assume that , when it exists, + defines anything. + * doc/glibc-headers/sysexits.texi: Mention the Haiku bug. + 2021-03-07 Bruno Haible Rename GNULIB_WCHAR_SINGLE to GNULIB_WCHAR_SINGLE_LOCALE. diff --git a/doc/glibc-headers/sysexits.texi b/doc/glibc-headers/sysexits.texi index df1c5dae84..cce7e41871 100644 --- a/doc/glibc-headers/sysexits.texi +++ b/doc/glibc-headers/sysexits.texi @@ -11,6 +11,10 @@ Portability problems fixed by Gnulib: This header file is missing on some platforms: mingw, MSVC 14. @item +This header file defines no @code{EX_*} macros if @code{_BSD_SOURCE} is not +defined on some platforms: +Haiku. +@item The macro @code{EX_CONFIG} is missing on some platforms: HP-UX 11. @end itemize diff --git a/lib/sysexits.in.h b/lib/sysexits.in.h index 7069a0d4a7..8a3bc9aa68 100644 --- a/lib/sysexits.in.h +++ b/lib/sysexits.in.h @@ -46,7 +46,7 @@ #ifndef _@GUARD_PREFIX@_SYSEXITS_H #define _@GUARD_PREFIX@_SYSEXITS_H -#if !@HAVE_SYSEXITS_H@ +#if !(@HAVE_SYSEXITS_H@ && defined EX_USAGE) # define EX_OK 0 /* same value as EXIT_SUCCESS */