hostapd: fix build errors on supplicant-only builds
[openwrt/staging/yousong.git] / package / network / services / hostapd / patches / 700-ubus_support.patch
index 92ca7b21ca185d462a3aed27e77c84788d54d54c..ad1a45bf38060478000c1aaa32a277d41c34e0b0 100644 (file)
 +      const u8 *addr;
 +};
 +
++struct hostapd_iface;
++struct hostapd_data;
++
 +#ifdef UBUS_SUPPORT
 +
 +#include <libubox/avl.h>
 +#include <libubus.h>
 +
-+struct hostapd_iface;
-+struct hostapd_data;
-+
 +struct hostapd_ubus_iface {
 +      struct ubus_object obj;
 +};