summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--nfsmount.c6
-rw-r--r--util-linux/nfsmount.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/nfsmount.c b/nfsmount.c
index a8c0b0ea6..ae9b99552 100644
--- a/nfsmount.c
+++ b/nfsmount.c
@@ -53,6 +53,12 @@
#include "nfsmount.h"
#include <linux/nfs.h> /* For the kernels nfs stuff */
+#ifndef NFS_FHSIZE
+#define NFS_FHSIZE 32
+#endif
+#ifndef NFS_PORT
+#define NFS_PORT 2049
+#endif
/* Disable the nls stuff */
# undef bindtextdomain
diff --git a/util-linux/nfsmount.c b/util-linux/nfsmount.c
index a8c0b0ea6..ae9b99552 100644
--- a/util-linux/nfsmount.c
+++ b/util-linux/nfsmount.c
@@ -53,6 +53,12 @@
#include "nfsmount.h"
#include <linux/nfs.h> /* For the kernels nfs stuff */
+#ifndef NFS_FHSIZE
+#define NFS_FHSIZE 32
+#endif
+#ifndef NFS_PORT
+#define NFS_PORT 2049
+#endif
/* Disable the nls stuff */
# undef bindtextdomain