Skip to contentSkip to conversation

backports: include headers directly if math64 header is missing

RFC Superseded Patrick Ziegler 1 participant 1 message Jul 30, 2013

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

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.

---
 backport/backport-include/linux/math64.h | 3 +++
 1 file changed, 3 insertions(+)
backport/backport-include/linux/math64.h +3 -0
index 7f3a81b..775c2d3 100644
@@ -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