diff --git a/configure b/configure index 0a503fa..2d13e8b 100755 --- a/configure +++ b/configure @@ -7097,6 +7097,9 @@ case $target in ;; *-*-netbsd*) ;; + *-*-libertybsd*) + CXXFLAGS="${CXXFLAGS} -DTW_LibertyBSD" + ;; i[0-9]86-pc-linux*) ;; sparc-*-linux*) diff --git a/configure.ac b/configure.ac index 2efec78..ca3439d 100644 --- a/configure.ac +++ b/configure.ac @@ -338,6 +338,9 @@ case $target in ;; *-*-netbsd*) ;; + *-*-libertybsd*) + CXXFLAGS="${CXXFLAGS} -DTW_LibertyBSD" + ;; i[[0-9]]86-pc-linux*) ;; sparc-*-linux*) diff --git a/src/core/platform.h b/src/core/platform.h index 7faeb7e..ba40bcc 100644 --- a/src/core/platform.h +++ b/src/core/platform.h @@ -66,6 +66,7 @@ #define OS_MIDNIGHTBSD 0x0306 #define OS_MIRBSD 0x0307 #define OS_BITRIG 0x0308 +#define OS_LIBERTYBSD 0x0309 #define OS_SOLARIS 0x0400 #define OS_AIX 0x0401 @@ -162,6 +163,10 @@ #define OS OS_BITRIG #define IS_BITRIG 1 +#elif defined(TW_LibertyBSD) + #define OS OS_LIBERTYBSD + #define IS_LIBERTYBSD 1 + #elif defined(__OpenBSD__) #define OS OS_OPENBSD #define IS_OPENBSD 1 diff --git a/src/twtest/platform_t.cpp b/src/twtest/platform_t.cpp index 7e937bf..fffdf4d 100644 --- a/src/twtest/platform_t.cpp +++ b/src/twtest/platform_t.cpp @@ -261,6 +261,8 @@ const TSTRING expected_os("NetBSD"); const TSTRING expected_os("MirBSD"); #elif IS_BITRIG const TSTRING expected_os("Bitrig"); +#elif IS_LIBERTYBSD +const TSTRING expected_os("LibertyBSD"); #elif IS_OPENBSD const TSTRING expected_os("OpenBSD"); #elif IS_SOLARIS