sys/sysctl.h is required on OSX and probably other BSD

This commit is contained in:
Adam Ierymenko 2016-07-21 19:21:51 -07:00
commit ebe7e15475
3 changed files with 3 additions and 0 deletions

View file

@ -42,6 +42,7 @@
#include <net/if.h>
#ifdef __BSD__
#include <net/if_dl.h>
#include <sys/sysctl.h>
#endif
#include <ifaddrs.h>
#endif

View file

@ -43,6 +43,7 @@
#include <net/if_arp.h>
#include <net/if_dl.h>
#include <net/if_media.h>
#include <sys/sysctl.h>
#include <netinet6/in6_var.h>
#include <netinet/in_var.h>
#include <netinet/icmp6.h>