[PATCH] nl80211_android: fix compilation by adding include for fcntl.h

Peer, Ilan ilan.peer at intel.com
Sun Nov 16 06:06:45 EST 2014


Hi Jouni,

> -----Original Message-----
> From: hostap-bounces at lists.shmoo.com [mailto:hostap-
> bounces at lists.shmoo.com] On Behalf Of Jouni Malinen
> Sent: Saturday, November 15, 2014 11:50
> To: hostap at lists.shmoo.com
> Subject: Re: [PATCH] nl80211_android: fix compilation by adding include for
> fcntl.h
> 
> On Wed, Nov 05, 2014 at 03:50:37AM -0500, Ilan Peer wrote:
> > diff --git a/src/drivers/driver_nl80211_android.c
> > b/src/drivers/driver_nl80211_android.c
> > +#include <fcntl.h>
> 
> Could you please clarify which Android version is failing to build and which
> line fails to compile? I don't see this with L.

Using KK.

These are the errors I'm getting:

hostapd/src/drivers/driver_nl80211_android.c: In function 'android_nl_socket_set_nonblocking':
hostapd/src/drivers/driver_nl80211_android.c:186:41: error: 'F_SETFL' undeclared (first use in this function)
hostapd/src/drivers/driver_nl80211_android.c:186:41: note: each undeclared identifier is reported only once for each function it appears in
hostapd/src/drivers/driver_nl80211_android.c:186:50: error: 'O_NONBLOCK' undeclared (first use in this function)
hostapd/src/drivers/driver_nl80211_android.c:187:1: error: control reaches end of non-void function [-Werror=return-type]

Regards,

Ilan.


More information about the HostAP mailing list