From 4c1af8c92a54542ee34d2a84bea4c74f09a8271b Mon Sep 17 00:00:00 2001 From: Kris Katterjohn Date: Thu, 15 Aug 2019 19:03:57 -0500 Subject: [PATCH] Fix NetBSD, DragonFly BSD and Darwin feature detection On NetBSD systems the netbsd feature identifier was not actually provided because the macro SEXP_NETBSD was defined twice and the second value was 0. On DragonFly systems the dragonfly feature identifier was not actually provided because the macro SEXP_DRAGONFLY was defined twice and the second value was 0. Also on DragonFly systems the darwin feature identifier was incorrectly provided because SEXP_DARWIN had a value of 1 instead of 0. --- include/chibi/features.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/chibi/features.h b/include/chibi/features.h index 09926179..06a4209f 100644 --- a/include/chibi/features.h +++ b/include/chibi/features.h @@ -323,14 +323,12 @@ #define SEXP_NETBSD 1 #define SEXP_DRAGONFLY 0 #define SEXP_OPENBSD 0 -#define SEXP_NETBSD 0 #elif defined(__DragonFly__) -#define SEXP_DARWIN 1 +#define SEXP_DARWIN 0 #define SEXP_FREEBSD 0 #define SEXP_NETBSD 0 #define SEXP_DRAGONFLY 1 #define SEXP_OPENBSD 0 -#define SEXP_DRAGONFLY 0 #elif defined(__OpenBSD__) #define SEXP_DARWIN 0 #define SEXP_FREEBSD 0