Ticket #746: redef_roundup_patch.diff
| File redef_roundup_patch.diff, 482 bytes (added by strasak@bubakov.net, 2 years ago) |
|---|
-
include/compat.h
old new 43 43 */ 44 44 #define NBBY 8 /* number of bits/byte */ 45 45 46 #define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) /* to any y */ 46 #include <linux/version.h> 47 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18) 48 #define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) /* to any y */ 49 #endif 50 47 51 #define howmany(x, y) (((x)+((y)-1))/(y)) 48 52 49 53 /* Bit map related macros. */
