# include <sys/timeout.h>
#elif defined(AFS_NBSD40_ENV)
+# ifdef AFS_NBSD50_ENV
+# include <sys/simplelock.h>
+# endif
# include <sys/errno.h>
# include <sys/types.h>
# include <sys/mount.h> /* may define MOUNT_AFS */
# if defined(HAVE_LINUX_EXPORTFS_H)
# include <linux/exportfs.h>
# endif
+# ifdef AFS_LINUX24_ENV
+# include <linux/pagemap.h>
+# endif
#else /* AFS_LINUX22_ENV */
# if defined(AFS_DARWIN_ENV)