From: David Messer Date: Wed, 31 Jan 2018 16:01:00 +0000 (-0500) Subject: Fix compiler issue with CONFIG_TESTING_OPTIONS X-Git-Tag: hostap_2_7~606 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82424732af16c988dfb4c2074f968d832ddf9535;p=thirdparty%2Fhostap.git Fix compiler issue with CONFIG_TESTING_OPTIONS Use the preprocessor conditional "ifdef" instead of "if" before CONFIG_TESTING_OPTIONS to prevent an issue on build systems that treat undefined preprocessor identifiers as an error. Signed-off-by: David Messer --- diff --git a/src/ap/wpa_auth.c b/src/ap/wpa_auth.c index 9e7ce96ca..5664caa35 100644 --- a/src/ap/wpa_auth.c +++ b/src/ap/wpa_auth.c @@ -4543,7 +4543,7 @@ void wpa_auth_get_fils_aead_params(struct wpa_state_machine *sm, #endif /* CONFIG_FILS */ -#if CONFIG_TESTING_OPTIONS +#ifdef CONFIG_TESTING_OPTIONS int wpa_auth_resend_m1(struct wpa_state_machine *sm, int change_anonce, void (*cb)(void *ctx1, void *ctx2),