Fix hostapd build with RADIUS support removed

This commit is contained in:
Jouni Malinen 2009-03-02 21:25:53 +02:00
parent 35463eaed3
commit af12135524

View File

@ -280,8 +280,20 @@ struct radius_class_data {
size_t count; size_t count;
}; };
#ifndef CONFIG_NO_RADIUS
void radius_free_class(struct radius_class_data *c); void radius_free_class(struct radius_class_data *c);
int radius_copy_class(struct radius_class_data *dst, int radius_copy_class(struct radius_class_data *dst,
const struct radius_class_data *src); 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 */ #endif /* RADIUS_H */