mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Support DragonFlyBSD and prune unused variables.
This commit is contained in:
parent
4dd86f1f29
commit
ed9beef61c
|
@ -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)
|
||||
|
|
|
@ -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 <netinet/in.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
@ -131,7 +131,7 @@ static void fetch_broadcast_info(uint16_t port)
|
|||
#include <linux/netdevice.h>
|
||||
#endif
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
#if defined(__FreeBSD__) || defined(__DragonFly__)
|
||||
#include <net/if.h>
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user