#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_CLIENT 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
#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_NAMEI_ENV 1 /* User space interface to file system */
#define AFS_USERSPACE_IP_ADDR 1
#include <features.h>
#endif
-#ifdef notyet
-#if defined(HAVE_LINUX_ERRQUEUE_H) && defined(HAVE_SETSOCKOPT_IP_RECVERR)
+#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
-#endif
#ifdef __GLIBC__
#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)