From 7a9a9b7d76808744796a5ce8f890836296f05763 Mon Sep 17 00:00:00 2001 From: "Ali H. Fardan" Date: Sun, 29 Apr 2018 10:55:38 +0300 Subject: [PATCH] ip: add OpenBSD support ip.c already works on OpenBSD, it's just missing some headers: --- components/ip.c | 7 +++++-- 1 file 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 +#include +#endif + #include #include #include @@ -69,4 +73,3 @@ ipv6(const char *iface) return NULL; } -#endif