summaryrefslogtreecommitdiff
path: root/xpp/xdefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'xpp/xdefs.h')
-rw-r--r--xpp/xdefs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/xpp/xdefs.h b/xpp/xdefs.h
index d7c7032..a68705c 100644
--- a/xpp/xdefs.h
+++ b/xpp/xdefs.h
@@ -25,6 +25,11 @@
#ifdef __KERNEL__
#include <linux/kernel.h>
+#include <linux/version.h>
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
+#define LINUX26
+#endif
#else
@@ -95,7 +100,9 @@ struct list_head { struct list_head *next; struct list_head *prev; };
typedef char *charp;
typedef unsigned char byte;
+#if !defined(LINUX26) || (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19))
typedef int bool;
+#endif
typedef struct xbus xbus_t;
typedef struct xpd xpd_t;
typedef struct xpacket_raw xpacket_raw_t;