summaryrefslogtreecommitdiff
path: root/kernel/xpp/xdefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/xpp/xdefs.h')
-rw-r--r--kernel/xpp/xdefs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/xpp/xdefs.h b/kernel/xpp/xdefs.h
index f928fd4..9e6b783 100644
--- a/kernel/xpp/xdefs.h
+++ b/kernel/xpp/xdefs.h
@@ -114,8 +114,13 @@ typedef unsigned char byte;
} while(0);
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
+/* Also don't define this for later RHEL >= 5.2 . hex_asc is from the
+ * same linux-2.6-net-infrastructure-updates-to-mac80211-iwl4965.patch
+ * as is the bool typedef. */
+#if LINUX_VERSION_CODE != KERNEL_VERSION(2,6,18) || ! defined(hex_asc)
typedef int bool;
#endif
+#endif
#else
typedef int bool;
#endif