From d4cf34c0c1ae06b115eea2edaa371ed1b8f33219 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sat, 8 Dec 2007 23:11:10 +0000 Subject: [PATCH] until the next release of libnatpmp, use Chinstraip's patch from http://miniupnp.tuxfamily.org/forum/viewtopic.php?t=417 --- third-party/libnatpmp/getgateway.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/third-party/libnatpmp/getgateway.c b/third-party/libnatpmp/getgateway.c index 6d17b3570..420c6bb5a 100644 --- a/third-party/libnatpmp/getgateway.c +++ b/third-party/libnatpmp/getgateway.c @@ -17,7 +17,7 @@ #include #include #include -#ifdef BSD +#if defined(BSD) || defined(__APPLE__) #include #include #include @@ -60,7 +60,7 @@ int getdefaultgateway(in_addr_t * addr) } #endif -#ifdef BSD +#if defined(BSD) || defined(__APPLE__) #define ROUNDUP(a) \ ((a) > 0 ? (1 + (((a) - 1) | (sizeof(long) - 1))) : sizeof(long))