From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Sven Eckelmann Date: Sun, 19 Nov 2017 17:12:07 +0100 Message-Id: <20171119161207.32588-7-sven@narfation.org> In-Reply-To: <20171119161207.32588-1-sven@narfation.org> References: <20171119161207.32588-1-sven@narfation.org> Subject: [B.A.T.M.A.N.] [PATCH 6/6] batman-adv: compat: Map to linux/nl80211.h for Linux < 3.7 List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: b.a.t.m.a.n@lists.open-mesh.org The uapi header of linux/nl80211.h was introduced with 3.7. Older version have to rely on the linux/nl80211.h header. Signed-off-by: Sven Eckelmann --- compat-include/uapi/linux/nl80211.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compat-include/uapi/linux/nl80211.h b/compat-include/uapi/linux/nl80211.h index 9b18178e..ead4c6dd 100644 --- a/compat-include/uapi/linux/nl80211.h +++ b/compat-include/uapi/linux/nl80211.h @@ -25,7 +25,11 @@ #define _NET_BATMAN_ADV_COMPAT_UAPI_LINUX_NL80211_H_ #include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 7, 0) #include_next +#else +#include +#endif #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 0, 0) -- 2.11.0