From d7b8d76a7862f9716c34b927f2abfacafbdd07c8 Mon Sep 17 00:00:00 2001 From: Niels Sascha Reedijk Date: Sun, 3 Mar 2019 21:42:17 +0100 Subject: [PATCH] BSD headers: remove _BSD_SOURCE feature gate for sysexits.h During the compilation of LLVM version 8, the build failed because it depends on a constant in this file. In hrev49042 all BSD headers were feature-gated by _BSD_SOURCE. This is not done (for this file) in glibc and (obviously) not in BSD's libc. Since this is not common practise, I would propose removing the feature gate for this header file, as it would mean that we would have to upstream patches for ports of other software that depends on the availability of these constants. Change-Id: I486f0c2e87eff489ce92d03589a6299ef1be6ca5 Reviewed-on: https://review.haiku-os.org/c/1144 Reviewed-by: waddlesplash --- headers/compatibility/bsd/sysexits.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/headers/compatibility/bsd/sysexits.h b/headers/compatibility/bsd/sysexits.h index a6b34473f1..989a4b3617 100644 --- a/headers/compatibility/bsd/sysexits.h +++ b/headers/compatibility/bsd/sysexits.h @@ -35,9 +35,6 @@ #define _SYSEXITS_H_ -#ifdef _BSD_SOURCE - - /* * SYSEXITS.H -- Exit status codes for system programs. * @@ -118,7 +115,4 @@ #define EX__MAX 78 /* maximum listed value */ -#endif - - #endif /* !_SYSEXITS_H_ */