diff options
author | Leonid Bobrov <mazocomp@disroot.org> | 2018-09-30 18:13:27 +0300 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-10-16 22:01:00 +0000 |
commit | ed9beef61c5713db6083a165f3c7d56d7f06186e (patch) | |
tree | a8191961a7917d9b264e7242933b8c9e04c5b1f6 /toxcore/LAN_discovery.c | |
parent | 4dd86f1f29886772cf19d12acbd8cd7b35fb1d07 (diff) |
Support DragonFlyBSD and prune unused variables.
Diffstat (limited to 'toxcore/LAN_discovery.c')
-rw-r--r-- | toxcore/LAN_discovery.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
119 | } | 119 | } |
120 | } | 120 | } |
121 | 121 | ||
122 | #elif defined(__linux__) || defined(__FreeBSD__) | 122 | #elif defined(__linux__) || defined(__FreeBSD__) || defined(__DragonFly__) |
123 | 123 | ||
124 | #include <netinet/in.h> | 124 | #include <netinet/in.h> |
125 | #include <sys/ioctl.h> | 125 | #include <sys/ioctl.h> |
@@ -131,7 +131,7 @@ static void fetch_broadcast_info(uint16_t port) | |||
131 | #include <linux/netdevice.h> | 131 | #include <linux/netdevice.h> |
132 | #endif | 132 | #endif |
133 | 133 | ||
134 | #ifdef __FreeBSD__ | 134 | #if defined(__FreeBSD__) || defined(__DragonFly__) |
135 | #include <net/if.h> | 135 | #include <net/if.h> |
136 | #endif | 136 | #endif |
137 | 137 | ||