Linux: Fix USE_UCONTEXT detection
[openafs.git] / src / config / param.linux26.h
index 5245090..ad2536b 100644 (file)
@@ -21,8 +21,8 @@
 #define AFS_MOUNT_AFS          "afs"   /* The name of the filesystem type */
 #define AFS_64BIT_IOPS_ENV     1
 #define AFS_NAMEI_ENV          1       /* User space interface to file system */
-#define AFS_64BIT_ENV          1
 #define AFS_64BIT_CLIENT       1
+#undef  AFS_NONFSTRANS
 #define AFS_NONFSTRANS         1
 #define AFS_USERSPACE_IP_ADDR  1
 #define RXK_LISTENER_ENV       1
@@ -31,6 +31,9 @@
 #define AFS_HAVE_STATVFS       0       /* System doesn't support statvfs */
 #define AFS_VM_RDWR_ENV                1       /* read/write implemented via VM */
 #define AFS_USE_GETTIMEOFDAY   1       /* use gettimeofday to implement rx clock */
+#define AFS_MAXVCOUNT_ENV       1
+
+#define AFS_PRIVATE_OSI_ALLOCSPACES    1
 
 #if defined(__KERNEL__) && !defined(KDUMP_KERNEL)
 #define AFS_GLOBAL_SUNLOCK
@@ -43,6 +46,7 @@
 #ifndef MAX
 #define MAX(A,B) ((A) > (B) ? (A) : (B))
 #endif
+
 #endif /* KERNEL */
 
 #ifndef KERNEL
@@ -61,6 +65,7 @@
 #define AFS_USR_LINUX26_ENV    1
 
 #define AFS_ENV                        1
+#undef  AFS_NONFSTRANS
 #define AFS_NONFSTRANS                 1
 #define AFS_MOUNT_AFS          "afs"   /* The name of the filesystem type. */
 #define AFS_64BIT_IOPS_ENV     1
 
 #endif /* !defined(UKERNEL) */
 
+#if defined(UKERNEL) || !defined(KERNEL)
+#include <features.h>
+#endif
+
 #ifdef __GLIBC__
 #if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)
 #define USE_UCONTEXT