From 6724f4d07a1aa5d3f554ddc541bec6b20f1ef585 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 10 Aug 2008 18:11:41 +0300 Subject: [PATCH] Fixed MinGW build without CONFIG_NDIS_EVENTS_INTEGRATED defined --- src/drivers/driver_ndis.c | 2 ++ wpa_supplicant/Makefile | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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