Message ID | 1415177437-11016-4-git-send-email-ilan.peer@intel.com |
---|---|
State | Accepted |
Headers | show |
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.
Hi Jouni, > -----Original Message----- > From: hostap-bounces@lists.shmoo.com [mailto:hostap- > bounces@lists.shmoo.com] On Behalf Of Jouni Malinen > Sent: Saturday, November 15, 2014 11:50 > To: hostap@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.
On Sun, Nov 16, 2014 at 11:06:45AM +0000, Peer, Ilan wrote: > 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) Thanks, applied.
diff --git a/src/drivers/driver_nl80211_android.c b/src/drivers/driver_nl80211_android.c index 1aec9d7..d077227 100644 --- a/src/drivers/driver_nl80211_android.c +++ b/src/drivers/driver_nl80211_android.c @@ -14,7 +14,7 @@ #include <netlink/genl/genl.h> #include <netlink/genl/family.h> #include <netlink/genl/ctrl.h> - +#include <fcntl.h> #include "utils/common.h" #include "driver_nl80211.h" #include "android_drv.h"
Signed-off-by: Ilan Peer <ilan.peer@intel.com> --- src/drivers/driver_nl80211_android.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)