From c7c26eb67ead3094be7bd9c2fd7bf79f2a5b25c7 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 7 Mar 2021 12:24:07 +0100 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ doc/glibc-headers/sysexits.texi | 4 ++++ lib/sysexits.in.h | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) 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 */ -- 2.39.5