Fix hostapd build with RADIUS support removed
This commit is contained in:
parent
35463eaed3
commit
af12135524
1 changed files with 12 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue