diff --git a/wpa_supplicant/rrm.c b/wpa_supplicant/rrm.c index 8468b2f86..e0723df21 100644 --- a/wpa_supplicant/rrm.c +++ b/wpa_supplicant/rrm.c @@ -101,10 +101,16 @@ 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 */ +#ifndef ENOTCONN #define ENOTCONN -1 +#endif +#ifndef EOPNOTSUPP #define EOPNOTSUPP -1 +#endif +#ifndef ECANCELED #define ECANCELED -1 #endif +#endif /* Measurement Request element + Location Subject + Maximum Age subelement */ #define MEASURE_REQUEST_LCI_LEN (3 + 1 + 4)