From 30f78e142084318f2a78201b523c415a3a73a03b Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Fri, 27 Jun 2008 22:01:19 -0700 Subject: [PATCH] Build with UCONTEXT on all Linux platforms The new glibc doesn't work with the old context code due to mangling done in the library (the interface AFS was using wasn't a supported or stable one). Switch to UCONTEXT for all Linux platforms, which stands a better chance of working (but may or may not actually work). --- src/config/param.alpha_linux_26.h | 5 +++++ src/config/param.parisc_linux24.h | 5 +++++ src/config/param.s390_linux26.h | 5 +++++ src/config/param.s390x_linux26.h | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/src/config/param.alpha_linux_26.h b/src/config/param.alpha_linux_26.h index 1d44da6d7..2ec3ba147 100644 --- a/src/config/param.alpha_linux_26.h +++ b/src/config/param.alpha_linux_26.h @@ -81,6 +81,11 @@ #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.parisc_linux24.h b/src/config/param.parisc_linux24.h index ad7506f5e..e70234abb 100644 --- a/src/config/param.parisc_linux24.h +++ b/src/config/param.parisc_linux24.h @@ -70,6 +70,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.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