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