Skip to content

Commit

Permalink
Fix build on OpenBSD
Browse files Browse the repository at this point in the history
Include "<sys/socket.h>" to have AF_INET6 and "<netinet/in.h>" to have
the in6_addr structure.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
  • Loading branch information
rwestphal committed Apr 9, 2019
1 parent af65d9e commit 55e33f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/user_types/user_inet_types.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#include <string.h>
#include <errno.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <netinet/in.h>

#include "../user_types.h"

Expand Down

0 comments on commit 55e33f9

Please sign in to comment.