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 hex_asc 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. Reported-By: Vladimir Mikhelson Internal-Issue-ID: DAHLIN-312 Signed-off-by: Shaun Ruffell <sruffell@digium.com> Acked-By: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
This commit is contained in:
parent
a46f906a0d
commit
da0aa6f231
@ -145,10 +145,12 @@ typedef char *charp;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)
|
||||||
/* Also don't define this for later RHEL >= 5.2 . hex_asc is from the
|
/* Also don't define this for later RHEL >= 5.2. */
|
||||||
* same linux-2.6-net-infrastructure-updates-to-mac80211-iwl4965.patch
|
#if defined(RHEL_RELEASE_CODE) && defined(RHEL_RELEASE_VERSION)
|
||||||
* as is the bool typedef. */
|
#if RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(5, 3)
|
||||||
#if LINUX_VERSION_CODE != KERNEL_VERSION(2, 6, 18) || !defined(hex_asc)
|
typedef int bool;
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
typedef int bool;
|
typedef int bool;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user