From c13a81f7f96a6433709b90c343d358c93cc7b9f8 Mon Sep 17 00:00:00 2001 From: Kris Katterjohn Date: Sun, 23 Dec 2018 14:51:45 -0600 Subject: Fix (and make consistent) the use of OpenBSD preprocessor macro tests Prior to this commit, the testsuite was failing on OpenBSD. After this commit the testsuite runs fine on OpenBSD. It was previously decided to test for the OpenBSD macro (rather than __OpenBSD__, etc.) because OpenBSD forks seem to have the former macro defined. sys/param.h must be included for the OpenBSD macro definition; however, many files tested for the OpenBSD macro without having this header included. This commit includes sys/param.h in the files where the OpenBSD macro is used (and sys/param.h is not already included), and it also changes some instances of the __OpenBSD__ macro to OpenBSD. See commit 27df23abb675ffeb198bf0c1cc85c4baed77a988 which changed everything to use OpenBSD instead of __OpenBSD__ or OPENBSD. See also tickets #6982 and #20980 (the latter ticket is where it was decided to use the OpenBSD macro). Signed-off-by: Kris Katterjohn --- src/lib/err/backtrace.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lib/err/backtrace.c') diff --git a/src/lib/err/backtrace.c b/src/lib/err/backtrace.c index d18a595c34..b568c888c5 100644 --- a/src/lib/err/backtrace.c +++ b/src/lib/err/backtrace.c @@ -32,6 +32,9 @@ #ifdef HAVE_SIGNAL_H #include #endif +#ifdef HAVE_SYS_PARAM_H +#include +#endif #include #include #include -- cgit v1.2.3-54-g00ecf