hostapd: fix build errors on supplicant-only builds
SVN-Revision: 36085
This commit is contained in:
parent
3ebdd3b330
commit
31876c193a
|
@ -225,7 +225,9 @@ TARGET_CPPFLAGS := \
|
||||||
|
|
||||||
TARGET_CFLAGS += -ffunction-sections -fdata-sections
|
TARGET_CFLAGS += -ffunction-sections -fdata-sections
|
||||||
TARGET_LDFLAGS += -Wl,--gc-sections
|
TARGET_LDFLAGS += -Wl,--gc-sections
|
||||||
TARGET_LDFLAGS += -lubox -lubus
|
ifeq ($(findstring supplicant,$(BUILD_VARIANT)),)
|
||||||
|
TARGET_LDFLAGS += -lubox -lubus
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef CONFIG_PACKAGE_kmod-mac80211
|
ifdef CONFIG_PACKAGE_kmod-mac80211
|
||||||
TARGET_LDFLAGS += -lm -lnl-tiny
|
TARGET_LDFLAGS += -lm -lnl-tiny
|
||||||
|
|
|
@ -422,14 +422,14 @@
|
||||||
+ const u8 *addr;
|
+ const u8 *addr;
|
||||||
+};
|
+};
|
||||||
+
|
+
|
||||||
|
+struct hostapd_iface;
|
||||||
|
+struct hostapd_data;
|
||||||
|
+
|
||||||
+#ifdef UBUS_SUPPORT
|
+#ifdef UBUS_SUPPORT
|
||||||
+
|
+
|
||||||
+#include <libubox/avl.h>
|
+#include <libubox/avl.h>
|
||||||
+#include <libubus.h>
|
+#include <libubus.h>
|
||||||
+
|
+
|
||||||
+struct hostapd_iface;
|
|
||||||
+struct hostapd_data;
|
|
||||||
+
|
|
||||||
+struct hostapd_ubus_iface {
|
+struct hostapd_ubus_iface {
|
||||||
+ struct ubus_object obj;
|
+ struct ubus_object obj;
|
||||||
+};
|
+};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user