From: Luis R. Rodriguez Date: Tue, 27 Aug 2013 20:05:21 +0000 (-0700) Subject: backports: fix compilation for 2.6.25 for math64 header X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=19951a60422062ec098ddaf5dd89c587829488a3;p=openwrt%2Fstaging%2Fblogic.git 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 --- diff --git a/backport/backport-include/linux/math64.h b/backport/backport-include/linux/math64.h index d551db6ebdf4..b65fab3490c1 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 +#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25)) #include_next +#else +#include +#include +#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25)) */ #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26) #if BITS_PER_LONG == 64