Browse Source

Fixed MinGW build without CONFIG_NDIS_EVENTS_INTEGRATED defined

Jouni Malinen 16 years ago
parent
commit
6724f4d07a
2 changed files with 6 additions and 1 deletions
  1. 2 0
      src/drivers/driver_ndis.c
  2. 4 1
      wpa_supplicant/Makefile

+ 2 - 0
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);

+ 4 - 1
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