mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 20:43:44 +02:00
needed in 2 more spots
This commit is contained in:
parent
8f4c038e23
commit
993e58773a
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__unix__) && !defined(__LINUX__)
|
#if (defined(__unix__) || defined(__APPLE__)) && !defined(__LINUX__)
|
||||||
#include <net/if.h>
|
#include <net/if.h>
|
||||||
#include <netinet6/in6_var.h>
|
#include <netinet6/in6_var.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
@ -311,7 +311,7 @@ class Binder {
|
||||||
if (! gotViaProc) {
|
if (! gotViaProc) {
|
||||||
struct ifaddrs* ifatbl = (struct ifaddrs*)0;
|
struct ifaddrs* ifatbl = (struct ifaddrs*)0;
|
||||||
struct ifaddrs* ifa;
|
struct ifaddrs* ifa;
|
||||||
#if defined(__unix__) && !defined(__LINUX__)
|
#if (defined(__unix__) || defined(__APPLE__)) && !defined(__LINUX__)
|
||||||
// set up an IPv6 socket so we can check the state of interfaces via SIOCGIFAFLAG_IN6
|
// set up an IPv6 socket so we can check the state of interfaces via SIOCGIFAFLAG_IN6
|
||||||
int infoSock = socket(AF_INET6, SOCK_DGRAM, 0);
|
int infoSock = socket(AF_INET6, SOCK_DGRAM, 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue