Skip to content

Commit 8a3d82a

Browse files
committed
fix build on OpenBSD
Fix the following build error: src/user_types/user_ipv4.c:29:19: error: use of undeclared identifier 'AF_INET' if (inet_pton(AF_INET, value_str, value->ptr) != 1) { Signed-off-by: Renato Westphal <[email protected]>
1 parent 63836f7 commit 8a3d82a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/user_types/user_ipv4.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <stdlib.h>
1616
#include <string.h>
1717
#include <arpa/inet.h>
18+
#include <sys/socket.h>
1819

1920
#include "../user_types.h"
2021

0 commit comments

Comments
 (0)