diff options
Diffstat (limited to 'xpp/xdefs.h')
-rw-r--r-- | xpp/xdefs.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/xpp/xdefs.h b/xpp/xdefs.h index 078e5a3..1da9580 100644 --- a/xpp/xdefs.h +++ b/xpp/xdefs.h @@ -70,7 +70,7 @@ struct list_head { struct list_head *next; struct list_head *prev; }; #define XPD_DESCLEN 20 #define XBUS_NAMELEN 20 /* must be <= from maximal workqueue name */ #define XBUS_DESCLEN 40 -#define SERIALNUM_SIZE 20 +#define LABEL_SIZE 20 #define UNIT_BITS 3 /* Bit for Astribank unit number */ #define SUBUNIT_BITS 3 /* Bit for Astribank subunit number */ @@ -102,6 +102,13 @@ struct list_head { struct list_head *next; struct list_head *prev; }; typedef char *charp; typedef unsigned char byte; #ifdef __KERNEL__ + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20) +#define KMEM_CACHE_T kmem_cache_t +#else +#define KMEM_CACHE_T struct kmem_cache +#endif + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) typedef int bool; #endif @@ -116,5 +123,4 @@ typedef struct xops xops_t; typedef __u32 xpp_line_t; /* at most 31 lines for E1 */ typedef byte lineno_t; - #endif /* XDEFS_H */ |