From: Russ Allbery Date: Sat, 28 Jun 2008 05:01:19 +0000 (-0700) Subject: Build with UCONTEXT on all Linux platforms X-Git-Tag: debian/1.4.7.dfsg1-3~21^2 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=30f78e142084318f2a78201b523c415a3a73a03b;p=packages%2Fo%2Fopenafs.git 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). --- 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) */