]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
sysexits: Fix for Haiku.
authorBruno Haible <bruno@clisp.org>
Sun, 7 Mar 2021 11:24:07 +0000 (12:24 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 7 Mar 2021 11:24:07 +0000 (12:24 +0100)
* lib/sysexits.in.h: Don't assume that <sysexits.h>, when it exists,
defines anything.
* doc/glibc-headers/sysexits.texi: Mention the Haiku bug.

ChangeLog
doc/glibc-headers/sysexits.texi
lib/sysexits.in.h

index 8b5ed00d6d4675371a9a8e2f6faf452b7476ced2..a0c19fed683335ac00e8daf4a0c382789c9dabfa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2021-03-07  Bruno Haible  <bruno@clisp.org>
+
+       sysexits: Fix for Haiku.
+       * lib/sysexits.in.h: Don't assume that <sysexits.h>, when it exists,
+       defines anything.
+       * doc/glibc-headers/sysexits.texi: Mention the Haiku bug.
+
 2021-03-07  Bruno Haible  <bruno@clisp.org>
 
        Rename GNULIB_WCHAR_SINGLE to GNULIB_WCHAR_SINGLE_LOCALE.
index df1c5dae844311162146fa343064f45e53916ef7..cce7e418712c525e9a391aa2df0997f63e5e9518 100644 (file)
@@ -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
index 7069a0d4a7e251449307ec9efa1ef4a7040c1ffc..8a3bc9aa688935d124617743abf4e80494dc79fa 100644 (file)
@@ -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 */