From patchwork Mon May 3 00:28:37 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Lindner X-Patchwork-Id: 49 Return-Path: Received: from smtp133.mail.ukl.yahoo.com (smtp133.mail.ukl.yahoo.com [77.238.184.64]) by open-mesh.net (Postfix) with SMTP id 06819154320 for ; Mon, 3 May 2010 02:34:13 +0200 (CEST) Received: (qmail 73733 invoked from network); 3 May 2010 00:34:12 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To:References; b=OvZRa7kPuTwWEOkJHgApJ2SiqUcyoHh3gub6X+Ef+B2rvoaCF819G8U+6I2vgm+MqwVekvYPtQVK2qKgJNhVfEfZMM4RpvDxhzmwfAg+lDJUU5FaNemJ6oy8rGo9UfGlHRPE0JHGvWvHZX6HJODxLjVAPf4LXbXO5qy7PuNcJqI= ; Received: from 115-81-67-196.taiwanmobile.net (lindner_marek@115.81.67.196 with plain) by smtp133.mail.ukl.yahoo.com with SMTP; 03 May 2010 00:34:07 +0000 GMT X-Yahoo-SMTP: tW.h3tiswBBMXO2coYcbPigGD5Lt6zY_.Zc- X-YMail-OSG: MavMlz8VM1mJrdHAxLXK9ZXaPJH879vk5K8qJLPnMlFCavsQBnTl6TgbGO9tl2L7IuV2bJKTg2lpuW87ighjnimS5hHjr3NDsrqaj4C4xFqNXT765.2H_Sp92G_kOpw4ktBhuMT_TN6917h4zVzRgbcbu0MwGfYijRJNn2We2Zd3VMBdMdISOsNeXoI9.m.A.hdGrKFZHexoTqxeCb438S8OMTLzYVJYHVyyYIALiR7Y7469XYTgYt4uXVuAHl50cfXzVaMgoMu0qw-- X-Yahoo-Newman-Property: ymail-3 From: Marek Lindner To: b.a.t.m.a.n@lists.open-mesh.net Date: Mon, 3 May 2010 08:28:37 +0800 Message-Id: <1272846518-2589-1-git-send-email-lindner_marek@yahoo.de> X-Mailer: git-send-email 1.7.0 In-Reply-To: <201005030828.08856.lindner_marek@yahoo.de> References: <201005030828.08856.lindner_marek@yahoo.de> Cc: Marek Lindner Subject: [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: adding MAC_FMT compatibility X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2010 00:34:14 -0000 Kernel older than 2.6.24 do not have the MAC_FMT definition, therefore we need to add it to our compat layer. Signed-off-by: Marek Lindner --- batman-adv-kernelland/compat.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/batman-adv-kernelland/compat.h b/batman-adv-kernelland/compat.h index 2e3aded..4eaa128 100644 --- a/batman-adv-kernelland/compat.h +++ b/batman-adv-kernelland/compat.h @@ -62,6 +62,12 @@ static inline int skb_clone_writable(struct sk_buff *skb, unsigned int len) #endif /* < KERNEL_VERSION(2, 6, 23) */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 24) + +#define MAC_FMT "%02x:%02x:%02x:%02x:%02x:%02x" + +#endif /* < KERNEL_VERSION(2, 6, 24) */ + #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25) #define strict_strtoul(cp, base, res) \