From ab93542f75afdde09c1e870815d7b48ced80ab83 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Mon, 30 Jun 2008 21:51:38 +0000 Subject: [PATCH] DEVEL15-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 d44edc401..33ef100a4 100644 --- a/src/config/param.alpha_linux_26.h +++ b/src/config/param.alpha_linux_26.h @@ -79,7 +79,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 01b6f7b73..abd67e603 100644 --- a/src/config/param.s390_linux26.h +++ b/src/config/param.s390_linux26.h @@ -85,6 +85,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 322d482e8..6324c3adc 100644 --- a/src/config/param.s390x_linux26.h +++ b/src/config/param.s390x_linux26.h @@ -88,6 +88,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