carl9170 firmware tools: fix compile errors in wol.c
authorChristian Lamparter <chunkeey@googlemail.com>
Fri, 21 Aug 2015 11:44:36 +0000 (13:44 +0200)
committerChristian Lamparter <chunkeey@googlemail.com>
Fri, 21 Aug 2015 11:44:36 +0000 (13:44 +0200)
commitca8d501af4011c67698def199c7608c911d85a9c
treecc0a32004ca6640a88e08098a1ea07670abd9902
parent8ae3dec58fde00849f91fa42440f30a14a4839e8
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 <chunkeey@googlemail.com>
tools/src/wol.c