LibertyBSD platform detection
This commit is contained in:
parent
99641c468f
commit
1333f3c15e
|
@ -7097,6 +7097,9 @@ case $target in
|
||||||
;;
|
;;
|
||||||
*-*-netbsd*)
|
*-*-netbsd*)
|
||||||
;;
|
;;
|
||||||
|
*-*-libertybsd*)
|
||||||
|
CXXFLAGS="${CXXFLAGS} -DTW_LibertyBSD"
|
||||||
|
;;
|
||||||
i[0-9]86-pc-linux*)
|
i[0-9]86-pc-linux*)
|
||||||
;;
|
;;
|
||||||
sparc-*-linux*)
|
sparc-*-linux*)
|
||||||
|
|
|
@ -338,6 +338,9 @@ case $target in
|
||||||
;;
|
;;
|
||||||
*-*-netbsd*)
|
*-*-netbsd*)
|
||||||
;;
|
;;
|
||||||
|
*-*-libertybsd*)
|
||||||
|
CXXFLAGS="${CXXFLAGS} -DTW_LibertyBSD"
|
||||||
|
;;
|
||||||
i[[0-9]]86-pc-linux*)
|
i[[0-9]]86-pc-linux*)
|
||||||
;;
|
;;
|
||||||
sparc-*-linux*)
|
sparc-*-linux*)
|
||||||
|
|
|
@ -66,6 +66,7 @@
|
||||||
#define OS_MIDNIGHTBSD 0x0306
|
#define OS_MIDNIGHTBSD 0x0306
|
||||||
#define OS_MIRBSD 0x0307
|
#define OS_MIRBSD 0x0307
|
||||||
#define OS_BITRIG 0x0308
|
#define OS_BITRIG 0x0308
|
||||||
|
#define OS_LIBERTYBSD 0x0309
|
||||||
|
|
||||||
#define OS_SOLARIS 0x0400
|
#define OS_SOLARIS 0x0400
|
||||||
#define OS_AIX 0x0401
|
#define OS_AIX 0x0401
|
||||||
|
@ -162,6 +163,10 @@
|
||||||
#define OS OS_BITRIG
|
#define OS OS_BITRIG
|
||||||
#define IS_BITRIG 1
|
#define IS_BITRIG 1
|
||||||
|
|
||||||
|
#elif defined(TW_LibertyBSD)
|
||||||
|
#define OS OS_LIBERTYBSD
|
||||||
|
#define IS_LIBERTYBSD 1
|
||||||
|
|
||||||
#elif defined(__OpenBSD__)
|
#elif defined(__OpenBSD__)
|
||||||
#define OS OS_OPENBSD
|
#define OS OS_OPENBSD
|
||||||
#define IS_OPENBSD 1
|
#define IS_OPENBSD 1
|
||||||
|
|
|
@ -261,6 +261,8 @@ const TSTRING expected_os("NetBSD");
|
||||||
const TSTRING expected_os("MirBSD");
|
const TSTRING expected_os("MirBSD");
|
||||||
#elif IS_BITRIG
|
#elif IS_BITRIG
|
||||||
const TSTRING expected_os("Bitrig");
|
const TSTRING expected_os("Bitrig");
|
||||||
|
#elif IS_LIBERTYBSD
|
||||||
|
const TSTRING expected_os("LibertyBSD");
|
||||||
#elif IS_OPENBSD
|
#elif IS_OPENBSD
|
||||||
const TSTRING expected_os("OpenBSD");
|
const TSTRING expected_os("OpenBSD");
|
||||||
#elif IS_SOLARIS
|
#elif IS_SOLARIS
|
||||||
|
|
Loading…
Reference in New Issue