Fixed MinGW build without CONFIG_NDIS_EVENTS_INTEGRATED defined

This commit is contained in:
Jouni Malinen 2008-08-10 18:11:41 +03:00
parent ccb172ed75
commit 6724f4d07a
2 changed files with 6 additions and 1 deletions

View file

@ -40,7 +40,9 @@ int close(int fd);
#include "driver_ndis.h" #include "driver_ndis.h"
int wpa_driver_register_event_cb(struct wpa_driver_ndis_data *drv); 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); 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_deinit(void *priv);
static void wpa_driver_ndis_poll(void *drv); static void wpa_driver_ndis_poll(void *drv);

View file

@ -189,7 +189,10 @@ endif
ifdef CONFIG_DRIVER_NDIS ifdef CONFIG_DRIVER_NDIS
CFLAGS += -DCONFIG_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 ifndef CONFIG_L2_PACKET
CONFIG_L2_PACKET=pcap CONFIG_L2_PACKET=pcap
endif endif