summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
Diffstat (limited to 'isys')
-rw-r--r--isys/nfs_mount3.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/isys/nfs_mount3.h b/isys/nfs_mount3.h
index e5c2b2fe4..5bc2a198e 100644
--- a/isys/nfs_mount3.h
+++ b/isys/nfs_mount3.h
@@ -8,12 +8,19 @@
#if KERNEL_NFS_MOUNT_VERSION >= 3
-/*
- * The kernel includes are at least as good as this file.
- * Use them.
- */
+#define _LINUX_IN_H 1
+
+#define __KERNEL__
+#include <linux/nfs.h>
+#undef __KERNEL__
+
+#include <linux/nfs2.h>
#include <linux/nfs_mount.h>
+#ifndef NFS_VERSION
+#define NFS_VERSION 2
+#endif
+
#else /* KERNEL_NFS_MOUNT_VERSION < 3 */
/*