Changeset 1689

Show
Ignore:
Timestamp:
07/21/06 10:56:01 (2 years ago)
Author:
kelmo
Message:

Avoid redefinition of roundup() with linux 2.6.18 and above.

Signed-off-by: Pavel Novák <strasak@bubakov.net>

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/include/compat.h

    r1529 r1689  
    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