Ticket #746: redef_roundup_patch.diff

File redef_roundup_patch.diff, 482 bytes (added by strasak@bubakov.net, 6 years ago)

quick patch which fix issues with roundup macro

  • include/compat.h

    old new  
    4343 */ 
    4444#define NBBY    8                       /* number of bits/byte */ 
    4545 
    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 
    4751#define howmany(x, y)   (((x)+((y)-1))/(y)) 
    4852 
    4953/* Bit map related macros. */