From: Jouni Malinen Date: Sat, 10 Jan 2015 22:56:17 +0000 (+0200) Subject: Work around Windows build issues X-Git-Tag: hostap_2_4~453 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b09baf37cf78989b1d0d1ad4abecc612eccf49af;p=thirdparty%2Fhostap.git 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 --- 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