aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nfsmount.c4
-rw-r--r--util-linux/nfsmount.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/nfsmount.c b/nfsmount.c
index d661a99a4..b260a885f 100644
--- a/nfsmount.c
+++ b/nfsmount.c
@@ -93,7 +93,9 @@ static const int MS_NODIRATIME = 2048; /* Do not update directory access time
93 * so it is easiest to ignore the kernel altogether (at compile time). 93 * so it is easiest to ignore the kernel altogether (at compile time).
94 */ 94 */
95 95
96static const int NFS_MOUNT_VERSION = 4; 96/* NOTE: Do not make this into a 'static const int' because the pre-processor
97 * needs to test this value in some #if statements. */
98#define NFS_MOUNT_VERSION 4
97 99
98struct nfs2_fh { 100struct nfs2_fh {
99 char data[32]; 101 char data[32];
diff --git a/util-linux/nfsmount.c b/util-linux/nfsmount.c
index d661a99a4..b260a885f 100644
--- a/util-linux/nfsmount.c
+++ b/util-linux/nfsmount.c
@@ -93,7 +93,9 @@ static const int MS_NODIRATIME = 2048; /* Do not update directory access time
93 * so it is easiest to ignore the kernel altogether (at compile time). 93 * so it is easiest to ignore the kernel altogether (at compile time).
94 */ 94 */
95 95
96static const int NFS_MOUNT_VERSION = 4; 96/* NOTE: Do not make this into a 'static const int' because the pre-processor
97 * needs to test this value in some #if statements. */
98#define NFS_MOUNT_VERSION 4
97 99
98struct nfs2_fh { 100struct nfs2_fh {
99 char data[32]; 101 char data[32];