From b09baf37cf78989b1d0d1ad4abecc612eccf49af Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 11 Jan 2015 00:56:17 +0200 Subject: [PATCH] Work around Windows build issues At least MinGW did not have ENOTCONN, EOPNOTSUPP, ECANCELED, so define these to allow the build to go through. wpas_rrm_send_neighbor_rep_request() is not really used on Windows, so the exact error code values do not make any difference here. Signed-off-by: Jouni Malinen --- wpa_supplicant/wpa_supplicant.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index 87f9f3f21..9994a7a95 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -5197,6 +5197,13 @@ void wpas_rrm_process_neighbor_rep(struct wpa_supplicant *wpa_s, } +#if defined(__CYGWIN__) || defined(CONFIG_NATIVE_WINDOWS) +/* Workaround different, undefined for Windows, error codes used here */ +#define ENOTCONN -1 +#define EOPNOTSUPP -1 +#define ECANCELED -1 +#endif + /** * wpas_rrm_send_neighbor_rep_request - Request a neighbor report from our AP * @wpa_s: Pointer to wpa_supplicant