Skip to content

Commit fd54f45

Browse files
committed
lkl tools: fix inet_pton declaration
gcc reports an implicit declaration warning about inet_pton function. This commit fixes the issue by including or defining it. Signed-off-by: Akira Moroo <retrage01@gmail.com>
1 parent 06a89e5 commit fd54f45

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tools/lkl/lib/config.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#include <stdlib.h>
22
#define _HAVE_STRING_ARCH_strtok_r
33
#include <string.h>
4+
#ifndef __MINGW32__
5+
#include <arpa/inet.h>
6+
#else
7+
#define inet_pton lkl_inet_pton
8+
#endif
49
#include <lkl_host.h>
510
#include <lkl_config.h>
611

0 commit comments

Comments
 (0)