diff options
author | Masashi Honma <honma@ictec.co.jp> | 2010-01-09 10:53:44 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2010-01-09 10:53:44 +0200 |
commit | 60e1ce76157a5c94350a256249f663cf82f40875 (patch) | |
tree | ce24d020dbb30ee8723de97f944f2d02f946d90c /src/drivers/driver_wired.c | |
parent | 1056dad796e78509604c0aa836803c8425b4ba37 (diff) | |
download | external_wpa_supplicant_8_ti-60e1ce76157a5c94350a256249f663cf82f40875.zip external_wpa_supplicant_8_ti-60e1ce76157a5c94350a256249f663cf82f40875.tar.gz external_wpa_supplicant_8_ti-60e1ce76157a5c94350a256249f663cf82f40875.tar.bz2 |
bsd: Fix driver_wired.c build
Diffstat (limited to 'src/drivers/driver_wired.c')
-rw-r--r-- | src/drivers/driver_wired.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/drivers/driver_wired.c b/src/drivers/driver_wired.c index 17e6cd3..8f43192 100644 --- a/src/drivers/driver_wired.c +++ b/src/drivers/driver_wired.c @@ -112,6 +112,7 @@ static int wired_multicast_membership(int sock, int ifindex, } +#ifdef __linux__ static void handle_data(void *ctx, unsigned char *buf, size_t len) { #ifdef HOSTAPD @@ -197,10 +198,12 @@ static void handle_dhcp(int sock, void *eloop_ctx, void *sock_ctx) event.new_sta.addr = mac_address; wpa_supplicant_event(eloop_ctx, EVENT_NEW_STA, &event); } +#endif /* __linux__ */ static int wired_init_sockets(struct wpa_driver_wired_data *drv, u8 *own_addr) { +#ifdef __linux__ struct ifreq ifr; struct sockaddr_ll addr; struct sockaddr_in addr2; @@ -300,6 +303,9 @@ static int wired_init_sockets(struct wpa_driver_wired_data *drv, u8 *own_addr) } return 0; +#else /* __linux__ */ + return -1; +#endif /* __linux__ */ } |