From ed9beef61c5713db6083a165f3c7d56d7f06186e Mon Sep 17 00:00:00 2001 From: Leonid Bobrov Date: Sun, 30 Sep 2018 18:13:27 +0300 Subject: Support DragonFlyBSD and prune unused variables. --- CMakeLists.txt | 12 ------------ toxcore/LAN_discovery.c | 4 ++-- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e7c0d79b..9db71402 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -61,18 +61,6 @@ if(APPLE) include(MacRpath) endif() -if(UNIX) - if(CMAKE_SYSTEM_NAME MATCHES ".*Linux") - set(LINUX TRUE) - elseif(CMAKE_SYSTEM_NAME MATCHES "kOpenBSD.*|OpenBSD.*") - set(OPENBSD TRUE) - elseif(CMAKE_SYSTEM_NAME MATCHES "kNetBSD.*|NetBSD.*") - set(NETBSD TRUE) - elseif(CMAKE_SYSTEM_NAME MATCHES "kFreeBSD.*|FreeBSD") - set(FREEBSD TRUE) - endif() -endif() - enable_testing() set(CMAKE_MACOSX_RPATH ON) diff --git a/toxcore/LAN_discovery.c b/toxcore/LAN_discovery.c index aeeea566..1137fc3d 100644 --- a/toxcore/LAN_discovery.c +++ b/toxcore/LAN_discovery.c @@ -119,7 +119,7 @@ static void fetch_broadcast_info(uint16_t port) } } -#elif defined(__linux__) || defined(__FreeBSD__) +#elif defined(__linux__) || defined(__FreeBSD__) || defined(__DragonFly__) #include #include @@ -131,7 +131,7 @@ static void fetch_broadcast_info(uint16_t port) #include #endif -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) || defined(__DragonFly__) #include #endif -- cgit v1.2.3