mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-21 11:33:04 -05:00
Fix Windows error code definition workaround
ENOTCONN, EOPNOTSUPP, and ECANCELED are defined in a newer version of MinGW, so make this workaround conditional on what is defined in the header files. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
043de65f1c
commit
bf15b15598
@ -101,10 +101,16 @@ void wpas_rrm_process_neighbor_rep(struct wpa_supplicant *wpa_s,
|
|||||||
|
|
||||||
#if defined(__CYGWIN__) || defined(CONFIG_NATIVE_WINDOWS)
|
#if defined(__CYGWIN__) || defined(CONFIG_NATIVE_WINDOWS)
|
||||||
/* Workaround different, undefined for Windows, error codes used here */
|
/* Workaround different, undefined for Windows, error codes used here */
|
||||||
|
#ifndef ENOTCONN
|
||||||
#define ENOTCONN -1
|
#define ENOTCONN -1
|
||||||
|
#endif
|
||||||
|
#ifndef EOPNOTSUPP
|
||||||
#define EOPNOTSUPP -1
|
#define EOPNOTSUPP -1
|
||||||
|
#endif
|
||||||
|
#ifndef ECANCELED
|
||||||
#define ECANCELED -1
|
#define ECANCELED -1
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Measurement Request element + Location Subject + Maximum Age subelement */
|
/* Measurement Request element + Location Subject + Maximum Age subelement */
|
||||||
#define MEASURE_REQUEST_LCI_LEN (3 + 1 + 4)
|
#define MEASURE_REQUEST_LCI_LEN (3 + 1 + 4)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user