From 207720e399eca88230e20b82af12ea486618af74 Mon Sep 17 00:00:00 2001 From: Luc Van Oostenryck Date: Tue, 21 Jan 2020 02:19:45 +0100 Subject: detect OS_UNIX as native OS If nothing more specific matches but __unix__ or __unix is defined, use OS_UNIX as the native OS. Signed-off-by: Luc Van Oostenryck --- machine.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/machine.h b/machine.h index 8f02b619..fdd5c68f 100644 --- a/machine.h +++ b/machine.h @@ -94,6 +94,7 @@ enum { OS_NETBSD, OS_OPENBSD, OS_SUNOS, + OS_UNIX, OS_UNKNOWN, }; @@ -111,6 +112,8 @@ enum { #define OS_NATIVE OS_OPENBSD #elif defined(__sun__) || defined(__sun) #define OS_NATIVE OS_SUNOS +#elif defined(__unix__) || defined(__unix) +#define OS_UNIX OS_UNIX #else #define OS_NATIVE OS_UNKNOWN #endif -- cgit 1.2.3-korg