Use __APPLE__
instead of __MACH__
.
This commit is contained in:
parent
7621bdfc77
commit
b67e49051c
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ ifconf(const char *tundev, const char *ipaddr)
|
|||
#ifdef linux
|
||||
ssystem("ifconfig %s inet6 `hostname` up", tundev);
|
||||
ssystem("ifconfig %s add %s", tundev, ipaddr);
|
||||
#elif defined(__MACH__)
|
||||
#elif defined(__APPLE__)
|
||||
ssystem("ifconfig %s inet6 %s up", tundev, ipaddr);
|
||||
ssystem("sysctl -w net.inet.ip.forwarding=1");
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue