hostapd: fix build errors on supplicant-only builds

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36085 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Felix Fietkau 2013-03-18 16:11:32 +00:00
parent 72786daa1b
commit d482f42efb
2 changed files with 6 additions and 4 deletions

View File

@ -225,7 +225,9 @@ TARGET_CPPFLAGS := \
TARGET_CFLAGS += -ffunction-sections -fdata-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
TARGET_LDFLAGS += -lm -lnl-tiny

View File

@ -422,14 +422,14 @@
+ 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;
+};