From patchwork Sun Nov 19 16:12:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 17138 X-Patchwork-Delegate: sven@narfation.org Return-Path: X-Original-To: patchwork@open-mesh.org Delivered-To: patchwork@open-mesh.org Received: from open-mesh.org (localhost [IPv6:::1]) by open-mesh.org (Postfix) with ESMTP id 1C8C982B54; Sun, 19 Nov 2017 17:13:32 +0100 (CET) Authentication-Results: open-mesh.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=narfation.org header.i=@narfation.org header.b="d1fP5C9E"; dkim-atps=neutral Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=79.140.41.39; helo=v3-1039.vlinux.de; envelope-from=sven@narfation.org; receiver= Received: from v3-1039.vlinux.de (narfation.org [79.140.41.39]) by open-mesh.org (Postfix) with ESMTPS id 9F5A68041B for ; Sun, 19 Nov 2017 17:12:28 +0100 (CET) Received: from sven-desktop.home.narfation.org (p200300C593EBC3FD792CD3ECD963554B.dip0.t-ipconnect.de [IPv6:2003:c5:93eb:c3fd:792c:d3ec:d963:554b]) by v3-1039.vlinux.de (Postfix) with ESMTPSA id 3D0F71100E8; Sun, 19 Nov 2017 17:12:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=narfation.org; s=20121; t=1511107948; bh=QU1Fk/MnhmnqZiRlKbdFAmm5z2lMs78hQtjdqoaJjdg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d1fP5C9ENQBjNzPOOprN5feMsDI9XMRUXiQjDBzBgVG7/7GYrzm9At9N+mieYvhyB 4ZcOfbezbcvltMuxXxMYWebOgJRBR6BV0zQx6sx+dlvn1xbilxmSEWBRoBXK7YFpPF jHlmbjA9dC8GpImp4+tePXG/dynP+MWGod6uKOc8= From: Sven Eckelmann To: b.a.t.m.a.n@lists.open-mesh.org Date: Sun, 19 Nov 2017 17:12:07 +0100 Message-Id: <20171119161207.32588-7-sven@narfation.org> X-Mailer: git-send-email 2.11.0 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 X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking Errors-To: b.a.t.m.a.n-bounces@lists.open-mesh.org Sender: "B.A.T.M.A.N" 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)