Skip to content

Commit

Permalink
lkl tools: fix inet_pton declaration
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
retrage committed Oct 4, 2019
1 parent 06a89e5 commit fd54f45
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/lkl/lib/config.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#include <stdlib.h>
#define _HAVE_STRING_ARCH_strtok_r
#include <string.h>
#ifndef __MINGW32__
#include <arpa/inet.h>
#else
#define inet_pton lkl_inet_pton
#endif
#include <lkl_host.h>
#include <lkl_config.h>

Expand Down

0 comments on commit fd54f45

Please sign in to comment.