master hovercats/oakiss / pkg / wpa_supplicant / patch / 0003-Prevent-reference-to-undefined-symbol-with-CONFIG_NO.patch
 1From ac2e14a8697e4d3f3fe7237b58e98a387b0c4b9d Mon Sep 17 00:00:00 2001
 2From: Michael Forney <mforney@mforney.org>
 3Date: Sun, 11 Aug 2019 04:00:13 +0000
 4Subject: [PATCH] Prevent reference to undefined symbol with CONFIG_NO_RADIUS
 5
 6---
 7 src/radius/radius.h | 3 +++
 8 1 file changed, 3 insertions(+)
 9
10diff --git a/src/radius/radius.h b/src/radius/radius.h
11index 05fddbaf2..ec21150f7 100644
12--- a/src/radius/radius.h
13+++ b/src/radius/radius.h
14@@ -330,6 +330,7 @@ char * radius_msg_get_tunnel_password(struct radius_msg *msg, int *keylen,
15 				      const u8 *secret, size_t secret_len,
16 				      struct radius_msg *sent_msg, size_t n);
17 
18+#ifndef CONFIG_NO_RADIUS
19 static inline int radius_msg_add_attr_int32(struct radius_msg *msg, u8 type,
20 					    u32 value)
21 {
22@@ -349,6 +350,8 @@ static inline int radius_msg_get_attr_int32(struct radius_msg *msg, u8 type,
23 	*value = ntohl(val);
24 	return 0;
25 }
26+#endif /* CONFIG_NO_RADIUS */
27+
28 int radius_msg_get_attr_ptr(struct radius_msg *msg, u8 type, u8 **buf,
29 			    size_t *len, const u8 *start);
30 int radius_msg_count_attr(struct radius_msg *msg, u8 type, int min_len);
31-- 
322.45.2
33