Cleanup usage of LINUX_VERSION_CODE for older kernels
[openafs.git] / src / config / param.linux26.h
index 249827e..75466f0 100644 (file)
 #ifndef UKERNEL
 
 /* This section for kernel libafs compiles only */
-#define AFS_LINUX20_ENV                1
-#define AFS_LINUX22_ENV                1
-#define AFS_LINUX24_ENV                1
-#define AFS_LINUX26_ENV                1
+#include <linux/version.h>
+
+#define AFS_LINUX_ENV          1
 
-#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
 #define AFS_GCPAGS             1       /* Set to Userdisabled, allow sysctl to override */
+#define AFS_PAG_ONEGROUP_ENV   1
 #define AFS_HAVE_FFS           1       /* Use system's ffs */
 #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_NEW_BKG             1
+
+#define AFS_PRIVATE_OSI_ALLOCSPACES    1
 
 #if defined(__KERNEL__) && !defined(KDUMP_KERNEL)
 #define AFS_GLOBAL_SUNLOCK
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
-#define AFS_USR_LINUX20_ENV    1
-#define AFS_USR_LINUX22_ENV    1
-#define AFS_USR_LINUX24_ENV    1
-#define AFS_USR_LINUX26_ENV    1
+
+#define AFS_USR_LINUX_ENV      1
 
 #define AFS_ENV                        1
+#define AFS_64BIT_CLIENT       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
-#define AFS_64BIT_ENV          1
 #define AFS_NAMEI_ENV          1       /* User space interface to file system */
 #define AFS_USERSPACE_IP_ADDR  1
 #define RXK_LISTENER_ENV       1
 #define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
 #define AFS_HAVE_FFS           1       /* Use system's ffs. */
 #define AFS_HAVE_STATVFS       0       /* System doesn't support statvfs */
-#define AFS_VM_RDWR_ENV                1       /* read/write implemented via VM */
 
 #define        afsio_iov       uio_iov
 #define        afsio_iovcnt    uio_iovcnt
 
 #endif /* !defined(UKERNEL) */
 
+#if defined(UKERNEL) || !defined(KERNEL)
+#include <features.h>
+#endif
+
+#if defined(HAVE_LINUX_ERRQUEUE_H) && defined(HAVE_SETSOCKOPT_IP_RECVERR) && !defined(UKERNEL)
+# define AFS_RXERRQ_ENV
+#endif
+#ifdef AFS_RXERRQ_ENV
+# define AFS_ADAPT_PMTU
+#endif
+
 #ifdef __GLIBC__
 #if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)
 #define USE_UCONTEXT