aboutsummaryrefslogtreecommitdiffstats
path: root/src/radius
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-03-02 21:25:53 +0200
committerJouni Malinen <j@w1.fi>2009-03-02 21:25:53 +0200
commitaf12135524a53fd4e176762b8cade1d7444c2acd (patch)
tree2d8db758959c183fbee5f39da2f0a62c27ec91a2 /src/radius
parent35463eaed391107dbe4a2dcaeb43aaa20e227a1e (diff)
downloadexternal_wpa_supplicant_8_ti-af12135524a53fd4e176762b8cade1d7444c2acd.zip
external_wpa_supplicant_8_ti-af12135524a53fd4e176762b8cade1d7444c2acd.tar.gz
external_wpa_supplicant_8_ti-af12135524a53fd4e176762b8cade1d7444c2acd.tar.bz2
Fix hostapd build with RADIUS support removed
Diffstat (limited to 'src/radius')
-rw-r--r--src/radius/radius.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/radius/radius.h b/src/radius/radius.h
index 76a5c13..9b76553 100644
--- a/src/radius/radius.h
+++ b/src/radius/radius.h
@@ -280,8 +280,20 @@ struct radius_class_data {
size_t count;
};
+#ifndef CONFIG_NO_RADIUS
void radius_free_class(struct radius_class_data *c);
int radius_copy_class(struct radius_class_data *dst,
const struct radius_class_data *src);
+#else /* CONFIG_NO_RADIUS */
+static inline void radius_free_class(struct radius_class_data *c)
+{
+}
+
+static inline int radius_copy_class(struct radius_class_data *dst,
+ const struct radius_class_data *src)
+{
+ return -1;
+}
+#endif /* CONFIG_NO_RADIUS */
#endif /* RADIUS_H */