Hostapd - Missing include files in driver.c, driver_wired.c & driver_madwifi.c

Steve st3v3 at btinternet.com
Thu Dec 2 06:59:04 EST 2004


Hi Jouni
When compiling hostapd there are a number of warnings,
focusing on the 3 driver interface source files. driver.c ,
driver_wired.c and driver_madwifi.c

driver_wired.c: In function `handle_read':
driver_wired.c:147: warning: implicit declaration of function `recv'
driver_wired.c: In function `wired_init_sockets':
driver_wired.c:199: warning: implicit declaration of function `socket'
driver_wired.c:226: warning: implicit declaration of function `bind'
driver_wired.c:238: warning: implicit declaration of function
`setsockopt'
driver_wired.c: In function `wired_send_eapol':
driver_wired.c:329: warning: implicit declaration of function `send'
The same warnings in all 3 files.

These implicit warnings can be fixed by including 2 more headers files
#include <sys/types.h>
#include <sys/socket.h>
Everything seems to work ok with and without the headers(for me it does anyway) 
on kernel 2.4.28
Please consider adding these additional includes to the files. 
Just to tidy up the compilation
I could easily do a patch, but didn't think you would need one for such a minor fix
Regards
	Steve
-- 
ENDOFMSG




More information about the HostAP mailing list