From 364691145698c8f9b87466cd9d9e2c54f8c6aaa9 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. Change-Id: I26e5554f2c5c5f9f8a74fb591efdfdc1f6ae7257 Reviewed-on: http://gerrit.openafs.org/2868 Tested-by: BuildBot Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- 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