mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-21 19:29:18 +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
|
||||
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 New Issue
Block a user