From: Derrick Brashear Date: Wed, 29 Sep 2010 18:15:24 +0000 (-0400) Subject: linux define ucontext properly X-Git-Tag: upstream/1.8.0_pre1^2~4743 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=364691145698c8f9b87466cd9d9e2c54f8c6aaa9;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. Change-Id: I26e5554f2c5c5f9f8a74fb591efdfdc1f6ae7257 Reviewed-on: http://gerrit.openafs.org/2868 Tested-by: BuildBot Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- 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 */