summaryrefslogtreecommitdiff
path: root/pkg/wpa_supplicant/patch/0003-Prevent-reference-to-undefined-symbol-with-CONFIG_NO.patch
blob: 2126a7ad372d33458d12de7499c2cd0d373860d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From ac2e14a8697e4d3f3fe7237b58e98a387b0c4b9d Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Sun, 11 Aug 2019 04:00:13 +0000
Subject: [PATCH] Prevent reference to undefined symbol with CONFIG_NO_RADIUS

---
 src/radius/radius.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/radius/radius.h b/src/radius/radius.h
index 05fddbaf2..ec21150f7 100644
--- a/src/radius/radius.h
+++ b/src/radius/radius.h
@@ -330,6 +330,7 @@ char * radius_msg_get_tunnel_password(struct radius_msg *msg, int *keylen,
 				      const u8 *secret, size_t secret_len,
 				      struct radius_msg *sent_msg, size_t n);
 
+#ifndef CONFIG_NO_RADIUS
 static inline int radius_msg_add_attr_int32(struct radius_msg *msg, u8 type,
 					    u32 value)
 {
@@ -349,6 +350,8 @@ static inline int radius_msg_get_attr_int32(struct radius_msg *msg, u8 type,
 	*value = ntohl(val);
 	return 0;
 }
+#endif /* CONFIG_NO_RADIUS */
+
 int radius_msg_get_attr_ptr(struct radius_msg *msg, u8 type, u8 **buf,
 			    size_t *len, const u8 *start);
 int radius_msg_count_attr(struct radius_msg *msg, u8 type, int min_len);
-- 
2.45.2