Skip to content

Commit

Permalink
extend ifdef guard to fix compilation on OpenBSD
Browse files Browse the repository at this point in the history
otherwise in6_addr, AF_INET and AF_INET6 end up being undefined

Signed-off-by: Jasper Lievisse Adriaanse <[email protected]>
  • Loading branch information
jasperla authored and ralight committed Jun 17, 2020
1 parent 2758401 commit 4ef7ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/socks_mosq.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ and the Eclipse Distribution License is available at
#else
# include <arpa/inet.h>
#endif
#ifdef __FreeBSD__
#if defined(__FreeBSD__) || defined(__OpenBSD__)
# include <sys/socket.h>
# include <netinet/in.h>
#endif
Expand Down

0 comments on commit 4ef7ea6

Please sign in to comment.