From 93c0213d7e8c173c7dacd35d28d1841e62dae4b2 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Mon, 30 Jun 2008 21:52:22 +0000 Subject: [PATCH] STABLE14-linux-ucontext-fixes-20080630 LICENSE BSD Enable UCONTEXT on alpha, s390, and s390x for glibc > 2.3. This is the semantic backport of linux-ucontext-fixes-20080630 adjusted for the param file reorganization. (cherry picked from commit 9f94f89a7a894651f18947ec7ac20959f9326478) --- src/config/param.alpha_linux_26.h | 6 +++++- src/config/param.s390_linux26.h | 5 +++++ src/config/param.s390x_linux26.h | 5 +++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/config/param.alpha_linux_26.h b/src/config/param.alpha_linux_26.h index 1d44da6d7..f8213aac2 100644 --- a/src/config/param.alpha_linux_26.h +++ b/src/config/param.alpha_linux_26.h @@ -80,7 +80,11 @@ #define SYS_NAME "alpha_linux_26" #define SYS_NAME_ID SYS_NAME_ID_alpha_linux_26 - +#ifdef __GLIBC__ +#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3) +#define USE_UCONTEXT +#endif +#endif #endif /* AFS_PARAM_H */ #else /* !defined(UKERNEL) */ diff --git a/src/config/param.s390_linux26.h b/src/config/param.s390_linux26.h index a941c28c3..cf3ebf7e1 100644 --- a/src/config/param.s390_linux26.h +++ b/src/config/param.s390_linux26.h @@ -86,6 +86,11 @@ #endif #endif /* KERNEL */ +#ifdef __GLIBC__ +#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3) +#define USE_UCONTEXT +#endif +#endif #endif /* AFS_PARAM_H */ #else /* !defined(UKERNEL) */ diff --git a/src/config/param.s390x_linux26.h b/src/config/param.s390x_linux26.h index 5ad1806f4..bb3bc8515 100644 --- a/src/config/param.s390x_linux26.h +++ b/src/config/param.s390x_linux26.h @@ -89,6 +89,11 @@ #endif #endif /* KERNEL */ +#ifdef __GLIBC__ +#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3) +#define USE_UCONTEXT +#endif +#endif #endif /* AFS_PARAM_H */ #else /* !defined(UKERNEL) */ -- 2.39.5