ip: add OpenBSD support

ip.c already works on OpenBSD, it's just missing some headers:
This commit is contained in:
Ali H. Fardan 2018-04-29 10:55:38 +03:00 committed by Aaron Marcher
parent 97ef7c2a1d
commit 7a9a9b7d76

View file

@ -1,5 +1,9 @@
/* See LICENSE file for copyright and license details. */
#if defined(__linux__)
#if defined(__OpenBSD__)
#include <sys/types.h>
#include <sys/socket.h>
#endif
#include <errno.h>
#include <ifaddrs.h>
#include <netdb.h>
@ -69,4 +73,3 @@ ipv6(const char *iface)
return NULL;
}
#endif