mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-03 11:30:53 +00:00
Use __APPLE__
instead of __MACH__
.
This commit is contained in:
parent
7621bdfc77
commit
b67e49051c
@ -127,7 +127,7 @@ ifconf(const char *tundev, const char *ipaddr)
|
|||||||
#ifdef linux
|
#ifdef linux
|
||||||
ssystem("ifconfig %s inet6 `hostname` up", tundev);
|
ssystem("ifconfig %s inet6 `hostname` up", tundev);
|
||||||
ssystem("ifconfig %s add %s", tundev, ipaddr);
|
ssystem("ifconfig %s add %s", tundev, ipaddr);
|
||||||
#elif defined(__MACH__)
|
#elif defined(__APPLE__)
|
||||||
ssystem("ifconfig %s inet6 %s up", tundev, ipaddr);
|
ssystem("ifconfig %s inet6 %s up", tundev, ipaddr);
|
||||||
ssystem("sysctl -w net.inet.ip.forwarding=1");
|
ssystem("sysctl -w net.inet.ip.forwarding=1");
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user