From: Derrick Brashear Date: Wed, 29 Sep 2010 18:15:24 +0000 (-0400) Subject: linux define ucontext properly X-Git-Tag: openafs-devel-1_5_78~103 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=2d4bb5a38f8fba5a5899870359a39a3e892e2243;p=packages%2Fo%2Fopenafs.git linux define ucontext properly ucontext requires glibc version info to engage. glibc info comes from features.h, which if we include afs_sysnames.h, we get... so, let's swap these. Reviewed-on: http://gerrit.openafs.org/2868 Tested-by: BuildBot Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear (cherry picked from commit 364691145698c8f9b87466cd9d9e2c54f8c6aaa9) Change-Id: Id9b143811a988095cda9d8f09b67732e3d18156b Reviewed-on: http://gerrit.openafs.org/2935 --- diff --git a/src/config/param.linux24.h b/src/config/param.linux24.h index 391f7844e..7ee95667f 100644 --- a/src/config/param.linux24.h +++ b/src/config/param.linux24.h @@ -115,12 +115,13 @@ #endif /* !defined(UKERNEL) */ +/* needed so glibc version will be defined */ +#include + #ifdef __GLIBC__ #if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3) #define USE_UCONTEXT #endif #endif -#include - #endif /* AFS_PARAM_COMMON_H */ diff --git a/src/config/param.linux26.h b/src/config/param.linux26.h index 249827e00..0feafa6a4 100644 --- a/src/config/param.linux26.h +++ b/src/config/param.linux26.h @@ -96,12 +96,13 @@ #endif /* !defined(UKERNEL) */ +/* needed so glibc version will be defined */ +#include + #ifdef __GLIBC__ #if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3) #define USE_UCONTEXT #endif #endif -#include - #endif /* AFS_PARAM_COMMON_H */