From e5bc3d5240a50b5d4a4247b14fa249d8323f2ca8 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Sat, 19 Jan 2013 17:02:41 -0600 Subject: [PATCH] xpp: Do not typedef _Bool on RHEL 5.2 or later. Without digging into the specifics, it looks like Red Hat Linux 5.9 removed the asx_hex definition that was previously used to determine if the bool definition was backported. We can simply use the RHEL_RELEASE_CODE now since we do not support any releases before the 5 series now. Internal-Issue-ID: DAHLIN-312 Signed-off-by: Shaun Ruffell Reported-By: Vladimir Mikhelson --- drivers/dahdi/xpp/xdefs.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/dahdi/xpp/xdefs.h b/drivers/dahdi/xpp/xdefs.h index 054c30c..f68f268 100644 --- a/drivers/dahdi/xpp/xdefs.h +++ b/drivers/dahdi/xpp/xdefs.h @@ -145,10 +145,8 @@ typedef char *charp; #endif #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) +/* Also don't define this for later RHEL >= 5.2. */ +#if defined(RHEL_RELEASE_CODE) && (RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(5,3)) typedef int bool; #endif #endif -- 1.8.1