batman-adv: Exchange include order for uapi header files 208/head
authorSven Eckelmann <sven.eckelmann@open-mesh.com>
Fri, 8 Jul 2016 09:30:27 +0000 (11:30 +0200)
committerSven Eckelmann <sven.eckelmann@open-mesh.com>
Fri, 8 Jul 2016 10:02:41 +0000 (12:02 +0200)
The build of netlink.c in batman-adv 2016.3 will fail because the
definition of GENL_NAMESIZE and similar things are missing. This is is
caused by an incorrect order of backports and non-backports header files
mixed up with uapi and non-uapi header files. Parts of the header files
would not get included by include_next because it not anymore in the
remaining search paths.

Reported: Marek Lindner <marek.lindner@open-mesh.com>
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
batman-adv/Makefile

index c45cbb4883f6a2761df700894e819ecb7aa50f84..1668083184d47236ec44c1ad4f10a3dfd5b8c57e 100644 (file)
@@ -62,10 +62,10 @@ PKG_EXTRA_CFLAGS:= \
 
 NOSTDINC_FLAGS = \
        -I$(PKG_BUILD_DIR)/net/batman-adv \
-       -I$(STAGING_DIR)/usr/include/mac80211-backport/uapi \
        -I$(STAGING_DIR)/usr/include/mac80211-backport \
-       -I$(STAGING_DIR)/usr/include/mac80211/uapi \
+       -I$(STAGING_DIR)/usr/include/mac80211-backport/uapi \
        -I$(STAGING_DIR)/usr/include/mac80211 \
+       -I$(STAGING_DIR)/usr/include/mac80211/uapi \
        -include backport/backport.h \
        -include $(PKG_BUILD_DIR)/compat-hacks.h