]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix compiler issue with CONFIG_TESTING_OPTIONS
authorDavid Messer <david.messer@garmin.com>
Wed, 31 Jan 2018 16:01:00 +0000 (11:01 -0500)
committerJouni Malinen <j@w1.fi>
Sat, 3 Feb 2018 10:41:09 +0000 (12:41 +0200)
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 <david.messer@garmin.com>
src/ap/wpa_auth.c

index 9e7ce96ca86e518f28de8125b615029580a6575a..5664caa3530ceeebb30c551cbe4b5f63c06aafad 100644 (file)
@@ -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),