]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Build with UCONTEXT on all Linux platforms
authorRuss Allbery <rra@debian.org>
Sat, 28 Jun 2008 05:01:19 +0000 (22:01 -0700)
committerRuss Allbery <rra@debian.org>
Sat, 28 Jun 2008 05:01:19 +0000 (22:01 -0700)
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
src/config/param.parisc_linux24.h
src/config/param.s390_linux26.h
src/config/param.s390x_linux26.h

index 1d44da6d742b4054bfc8dfa209710ecd9b0ee1ec..2ec3ba147797f26347aabff10ba8cca7fd053b70 100644 (file)
 #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) */
index ad7506f5e5ea85a45c4d29a979797be7f986b570..e70234abb69b1bab23e09939573073778604d730 100644 (file)
 #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) */
index a941c28c384e186d7f8fc614bdd35517d4b5ad3d..cf3ebf7e12b968451626f0eb9473aac754f301d3 100644 (file)
 #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) */
index 5ad1806f46ef19cd0e01239a54ac60a351e300f7..bb3bc8515829ee53074e06e232e3d50a65ea7033 100644 (file)
 #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) */