Use __APPLE__ instead of __MACH__.

This commit is contained in:
Ilya Dmitrichenko 2012-02-28 21:28:57 +00:00 committed by David Kopf
parent 7621bdfc77
commit b67e49051c

View file

@ -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