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 391f784..7ee9566 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 249827e..0feafa6 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 */