extend ifdef guard to fix compilation on OpenBSD

otherwise in6_addr, AF_INET and AF_INET6 end up being undefined

Signed-off-by: Jasper Lievisse Adriaanse <jasper@humppa.nl>
pull/1737/head
Jasper Lievisse Adriaanse 5 years ago committed by Roger Light
parent 2758401829
commit 4ef7ea6244

@ -27,7 +27,7 @@ Contributors:
#else
# include <arpa/inet.h>
#endif
#ifdef __FreeBSD__
#if defined(__FreeBSD__) || defined(__OpenBSD__)
# include <sys/socket.h>
# include <netinet/in.h>
#endif

Loading…
Cancel
Save