Skip to contentSkip to conversation

iw: handle HAVE_LIBNL20 properly

PATCH Sergey Senozhatsky 1 participant 1 message May 18, 2012 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Sergey Senozhatsky

author
#1 lore raw
Quoted 3 lines · Németh Márton

Hi,

Hello,

Cc powertop(a)lists.01.org list

Quoted 3 lines

starting with the commit b0d2854861de2f15671e633da11f42207d4357df I get the following compile time error:

Well, that's strange, since commit itself doesn't change much....

how about the following one

-------8<---------8<----------

Re-organize iw header includes.

Reported-by Németh Márton <nm127(a)freemail.hu>
Signed-off-by Sergey Senozhatsky <sergey.senozhatsky(a)gmail.com>

---

 src/tuning/iw.c |    1 +
 src/tuning/iw.h |    6 ------
 2 files changed, 1 insertion(+), 6 deletions(-)
src/tuning/iw.c +1 -0
index aeba3fd..9e7508b 100644
@@ -39,6 +39,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 #include <unistd.h>
 #include <stdbool.h>
 
+#include <linux/nl80211.h>
 #include <netlink/genl/genl.h>
 #include <netlink/genl/family.h>
 #include <netlink/genl/ctrl.h>
src/tuning/iw.h +0 -6
index acf132d..6ea5a3d 100644
@@ -33,12 +33,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */
 
 #include <stdbool.h>
-#include <netlink/netlink.h>
-#include <netlink/genl/genl.h>
-#include <netlink/genl/family.h>
-#include <netlink/genl/ctrl.h>
-
-#include <linux/nl80211.h>
 
 #define ETH_ALEN 6