summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-07-21 19:21:51 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-07-21 19:21:51 -0700
commitebe7e154758cf99082d8821ff1b9cafd0a254591 (patch)
treec1a10774f963535763875dfcf5f3bdda37e428eb /ext
parentdced40361bcd4f1daf1b101b8ea7d857580e45f3 (diff)
downloadinfinitytier-ebe7e154758cf99082d8821ff1b9cafd0a254591.tar.gz
infinitytier-ebe7e154758cf99082d8821ff1b9cafd0a254591.zip
sys/sysctl.h is required on OSX and probably other BSD
Diffstat (limited to 'ext')
-rw-r--r--ext/libnatpmp/getgateway.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/libnatpmp/getgateway.c b/ext/libnatpmp/getgateway.c
index 7f314152..f743a089 100644
--- a/ext/libnatpmp/getgateway.c
+++ b/ext/libnatpmp/getgateway.c
@@ -53,6 +53,7 @@ POSSIBILITY OF SUCH DAMAGE.
#undef USE_PROC_NET_ROUTE
#define USE_SOCKET_ROUTE
#undef USE_SYSCTL_NET_ROUTE
+#include <sys/sysctl.h>
#endif
#ifdef __APPLE__