diff options
author | Luis R. Rodriguez <mcgrof@do-not-panic.com> | 2013-08-27 13:05:21 -0700 |
---|---|---|
committer | Luis R. Rodriguez <mcgrof@do-not-panic.com> | 2013-08-27 13:05:21 -0700 |
commit | 19951a60422062ec098ddaf5dd89c587829488a3 (patch) | |
tree | 40d324d131544bc99dc36c34f5bdbe7ced6882b6 /backport/backport-include/linux/math64.h | |
parent | 168beb7a3dad933d29f8e0dabd37db8cf189a4c7 (diff) |
backports: fix compilation for 2.6.25 for math64 header
We need to ifdef correctly before assuming we can include that
header.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Diffstat (limited to 'backport/backport-include/linux/math64.h')
-rw-r--r-- | backport/backport-include/linux/math64.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backport/backport-include/linux/math64.h b/backport/backport-include/linux/math64.h index d551db6e..b65fab34 100644 --- a/backport/backport-include/linux/math64.h +++ b/backport/backport-include/linux/math64.h @@ -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 |