aboutsummaryrefslogtreecommitdiffstats
path: root/src/radius/radius.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-03-02 19:25:53 (GMT)
committerJouni Malinen <j@w1.fi>2009-03-02 19:25:53 (GMT)
commitaf12135524a53fd4e176762b8cade1d7444c2acd (patch)
tree2d8db758959c183fbee5f39da2f0a62c27ec91a2 /src/radius/radius.h
parent35463eaed391107dbe4a2dcaeb43aaa20e227a1e (diff)
downloadhostap-af12135524a53fd4e176762b8cade1d7444c2acd.zip
hostap-af12135524a53fd4e176762b8cade1d7444c2acd.tar.gz
hostap-af12135524a53fd4e176762b8cade1d7444c2acd.tar.bz2
Fix hostapd build with RADIUS support removed
Diffstat (limited to 'src/radius/radius.h')
-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 */