Commit f638e53b authored by David Johnson's avatar David Johnson

Only include sysctl.h on FreeBSD in findif.

Some libcs might not include a sysctl interface (I'm looking at you,
musl!); so only pull this in for the __FreeBSD__ case, which is the only
place we use it anyway.
parent c5cd6338
......@@ -71,7 +71,9 @@
#include <sys/param.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#ifdef __FreeBSD__
#include <sys/sysctl.h>
#endif
#include <netinet/in.h>
#include <arpa/inet.h>
#include <net/ethernet.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment