From 7c14b80a011e9e99b1cef0bfd96bae364edd5663 Mon Sep 17 00:00:00 2001 From: ng0 Date: Tue, 19 Nov 2019 17:30:32 +0000 Subject: On *BSD the header file sys/param.h defines BSD. Drop unnecessary BSD defines in the build-system. Furthermore add detection for FreeBSD using the additional defines by FreeBSD. Use !Linux where previously a list of BSDs was. --- src/include/platform.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/include/platform.h') diff --git a/src/include/platform.h b/src/include/platform.h index 0dddd9741..976c9eac7 100644 --- a/src/include/platform.h +++ b/src/include/platform.h @@ -115,11 +115,10 @@ #include #endif #endif - -#ifdef SOMEBSD +#ifdef BSD #include #endif -#ifdef FREEBSD +#if defined(BSD) && defined(__FreeBSD__) && defined(__FreeBSD_kernel__) #include #endif #ifdef DARWIN @@ -188,7 +187,8 @@ #include -#ifdef FREEBSD +/* FreeBSD_kernel is not defined on the now discontinued kFreeBSD */ +#if defined(BSD) && defined(__FreeBSD__) && defined(__FreeBSD_kernel__) #define __BYTE_ORDER BYTE_ORDER #define __BIG_ENDIAN BIG_ENDIAN #endif -- cgit v1.2.3