diff options
author | Ali H. Fardan <raiz@firemail.cc> | 2018-04-29 10:55:38 +0300 |
---|---|---|
committer | Aaron Marcher <me@drkhsh.at> | 2018-04-29 12:54:28 +0200 |
commit | 7a9a9b7d76808744796a5ce8f890836296f05763 (patch) | |
tree | 0c185ee2127afe85f70b84d16b82717f0d777bb0 | |
parent | 97ef7c2a1d67bb2c9c379e657fbc8e35acd6aafb (diff) |
ip: add OpenBSD support
ip.c already works on OpenBSD, it's just missing some headers:
-rw-r--r-- | components/ip.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/components/ip.c b/components/ip.c index 686344b..422b448 100644 --- a/components/ip.c +++ b/components/ip.c @@ -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 |