libs/iwinfo: conditionally compile wl.o or madwifi support, make it depend on $(CRAP)
[oweals/luci.git] / libs / iwinfo / src / iwinfo.h
index f15e38327f7b5cf958766e0650f3d23658b21a3f..cbb9b69a3064ea0a4af4c35736de87e313743d56 100644 (file)
 #include <net/if.h>
 #include <errno.h>
 
+#include "iwinfo_wext.h"
+
+#ifdef USE_WL
 #include "iwinfo_wl.h"
+#endif
+
+#ifdef USE_MADWIFI
 #include "iwinfo_madwifi.h"
-#include "iwinfo_wext.h"
+#endif
 
 
 #define IWINFO_BUFSIZE 24 * 1024