]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
linux define ucontext properly
authorDerrick Brashear <shadow@dementia.org>
Wed, 29 Sep 2010 18:15:24 +0000 (14:15 -0400)
committerDerrick Brashear <shadow@dementia.org>
Thu, 30 Sep 2010 13:26:12 +0000 (06:26 -0700)
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 <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/config/param.linux24.h
src/config/param.linux26.h

index 391f7844e5f04bffb6479a48871aebcfb2e13e8e..7ee95667ff06279f8b3735a24f20215cfe50e764 100644 (file)
 
 #endif /* !defined(UKERNEL) */
 
+/* needed so glibc version will be defined */
+#include <afs/afs_sysnames.h>
+
 #ifdef __GLIBC__
 #if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)
 #define USE_UCONTEXT
 #endif
 #endif
 
-#include <afs/afs_sysnames.h>
-
 #endif /* AFS_PARAM_COMMON_H */
index 249827e006cad829e4e394327ccf0ba84ec64c03..0feafa6a4d3296e9ee8407786e66ea6bddf8f02b 100644 (file)
 
 #endif /* !defined(UKERNEL) */
 
+/* needed so glibc version will be defined */
+#include <afs/afs_sysnames.h>
+
 #ifdef __GLIBC__
 #if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)
 #define USE_UCONTEXT
 #endif
 #endif
 
-#include <afs/afs_sysnames.h>
-
 #endif /* AFS_PARAM_COMMON_H */