From ca8d501af4011c67698def199c7608c911d85a9c Mon Sep 17 00:00:00 2001 From: Christian Lamparter Date: Fri, 21 Aug 2015 13:44:36 +0200 Subject: [PATCH] carl9170 firmware tools: fix compile errors in wol.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit wol.c: In function ‘monitor_init’: wol.c:40:19: warning: implicit declaration of function ‘if_nametoindex’ ll.sll_ifindex = if_nametoindex(ifname); ^ wol.c:46:45: warning: implicit declaration of function ‘htons’ monitor_sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); ^ Signed-off-by: Christian Lamparter --- tools/src/wol.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/src/wol.c b/tools/src/wol.c index 41daba2..f2bd51b 100644 --- a/tools/src/wol.c +++ b/tools/src/wol.c @@ -25,10 +25,12 @@ #include #include +#include +#include + #include #include /* ETH_P_ALL */ #include /* sockaddr_ll */ -#include /* IFNAMSIZ */ static int monitor_init(const char *ifname) { -- 2.31.1