From: Christian Lamparter Date: Fri, 21 Aug 2015 11:44:36 +0000 (+0200) Subject: carl9170 firmware tools: fix compile errors in wol.c X-Git-Url: https://jxself.org/git/?p=carl9170fw.git;a=commitdiff_plain;h=ca8d501af4011c67698def199c7608c911d85a9c carl9170 firmware tools: fix compile errors in wol.c 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 --- 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) {