Author: marek Date: 2010-05-04 04:07:17 +0200 (Tue, 04 May 2010) New Revision: 1652
Modified: trunk/batman-adv-kernelland/compat.h Log: batman-adv: adding MAC_FMT compatibility
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 lindner_marek@yahoo.de
Modified: trunk/batman-adv-kernelland/compat.h =================================================================== --- trunk/batman-adv-kernelland/compat.h 2010-05-04 01:46:24 UTC (rev 1651) +++ trunk/batman-adv-kernelland/compat.h 2010-05-04 02:07:17 UTC (rev 1652) @@ -62,6 +62,12 @@
#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) \