From: Russ Allbery Date: Mon, 30 Jun 2008 21:52:22 +0000 (+0000) Subject: STABLE14-linux-ucontext-fixes-20080630 X-Git-Tag: openafs-stable-1_4_8pre1~60 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=93c0213d7e8c173c7dacd35d28d1841e62dae4b2;p=packages%2Fo%2Fopenafs.git 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) --- 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) */