backports: fix compilation for 2.6.25 for math64 header
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>
Tue, 27 Aug 2013 20:05:21 +0000 (13:05 -0700)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Tue, 27 Aug 2013 20:05:21 +0000 (13:05 -0700)
We need to ifdef correctly before assuming we can include that
header.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
backport/backport-include/linux/math64.h

index d551db6ebdf4991d17264acc85f44235968ce1b9..b65fab3490c15cb5100134098a1b998dec9c1964 100644 (file)
@@ -2,7 +2,12 @@
 #define _COMPAT_LINUX_MATH64_H 1
 
 #include <linux/version.h>
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25))
 #include_next <linux/math64.h>
+#else
+#include <linux/types.h>
+#include <asm/div64.h>
+#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25)) */
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26)
 #if BITS_PER_LONG == 64