From: Jouni Malinen Date: Sun, 10 Aug 2008 15:11:41 +0000 (+0300) Subject: Fixed MinGW build without CONFIG_NDIS_EVENTS_INTEGRATED defined X-Git-Tag: hostap_0_6_4~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6724f4d07a1aa5d3f554ddc541bec6b20f1ef585;p=thirdparty%2Fhostap.git Fixed MinGW build without CONFIG_NDIS_EVENTS_INTEGRATED defined --- diff --git a/src/drivers/driver_ndis.c b/src/drivers/driver_ndis.c index baa95e6c8..da4f90f41 100644 --- a/src/drivers/driver_ndis.c +++ b/src/drivers/driver_ndis.c @@ -40,7 +40,9 @@ int close(int fd); #include "driver_ndis.h" int wpa_driver_register_event_cb(struct wpa_driver_ndis_data *drv); +#ifdef CONFIG_NDIS_EVENTS_INTEGRATED void wpa_driver_ndis_event_pipe_cb(void *eloop_data, void *user_data); +#endif /* CONFIG_NDIS_EVENTS_INTEGRATED */ static void wpa_driver_ndis_deinit(void *priv); static void wpa_driver_ndis_poll(void *drv); diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile index 33b0c4f95..10965833b 100644 --- a/wpa_supplicant/Makefile +++ b/wpa_supplicant/Makefile @@ -189,7 +189,10 @@ endif ifdef CONFIG_DRIVER_NDIS CFLAGS += -DCONFIG_DRIVER_NDIS -OBJS_d += ../src/drivers/driver_ndis.o ../src/drivers/driver_ndis_.o +OBJS_d += ../src/drivers/driver_ndis.o +ifdef CONFIG_NDIS_EVENTS_INTEGRATED +OBJS_d += ../src/drivers/driver_ndis_.o +endif ifndef CONFIG_L2_PACKET CONFIG_L2_PACKET=pcap endif