From 2d4bb5a38f8fba5a5899870359a39a3e892e2243 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Wed, 29 Sep 2010 14:15:24 -0400 Subject: [PATCH] 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 --- src/config/param.linux24.h | 5 +++-- src/config/param.linux26.h | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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 */ -- 2.39.5