backports: include headers directly if math64 header is missing
RFC 6/8 backports: include headers directly if math64 header is missing
If math64 header is not available, include div64.h directly. It is required for do_div() that is used inside the backport version of math64.h.
Signed-off-by Patrick Ziegler <[email protected]>
--- backport/backport-include/linux/math64.h | 3 +++ 1 file changed, 3 insertions(+)
backport/backport-include/linux/math64.h +3 -0
@@ -5,6 +5,9 @@#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 )
Signature · 20 lines
1.8.1.2 -- Dipl.-Inf. (FH) Patrick Ziegler University Of Applied Sciences Kaiserslautern Amerikastrasse 1 D-66482 Zweibruecken Germany Phone: +49 631 3724 5526 Mail: [email protected] PGP KeyID 0xB4796B8C http://www.fh-kl.de http://www.fh-kl.de/fachbereiche/imst/iuk-knowhow.html