diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 95e9fb96..28660794 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -21,6 +21,8 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") list(APPEND CLIENT_SRC "DaemonLinux.cpp") elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin") list(APPEND CLIENT_SRC "DaemonLinux.cpp") +elseif(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD") + list(APPEND CLIENT_SRC "DaemonLinux.cpp") elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows") list(APPEND CLIENT_SRC "DaemonWin32.cpp") list(APPEND CLIENT_SRC "Win32Service.cpp") diff --git a/core/util/I2PEndian.h b/core/util/I2PEndian.h index 9b42836d..5e57037e 100644 --- a/core/util/I2PEndian.h +++ b/core/util/I2PEndian.h @@ -3,7 +3,7 @@ #include #include -#if defined(__linux__) || defined(__FreeBSD_kernel__) +#if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__) #include #elif __FreeBSD__ #include diff --git a/core/util/util.cpp b/core/util/util.cpp index aa7ac82d..d55f380b 100644 --- a/core/util/util.cpp +++ b/core/util/util.cpp @@ -15,7 +15,7 @@ #include "util.h" #include "Log.h" -#if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__APPLE__) +#if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__APPLE__) || defined(__OpenBSD__) #include #include #elif defined(WIN32) @@ -463,7 +463,7 @@ namespace http namespace net { -#if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__APPLE__) +#if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__APPLE__) || defined(__OpenBSD__) int GetMTUUnix(const boost::asio::ip::address& localAddress, int fallback) { @@ -663,7 +663,7 @@ namespace net { { const int fallback = 576; // fallback MTU -#if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__APPLE__) +#if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__APPLE__) || defined(__OpenBSD__) return GetMTUUnix(localAddress, fallback); #elif defined(WIN32) return GetMTUWindows(localAddress, fallback);