From 85260673367011a08c262891bb40cb65418fa720 Mon Sep 17 00:00:00 2001 From: Mark Whitley Date: Tue, 30 Jan 2001 18:53:42 +0000 Subject: Applied patch from Larry Doolittle to use preprocessor for defining NFS_MOUNT_VERSION. --- util-linux/nfsmount.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'util-linux') diff --git a/util-linux/nfsmount.c b/util-linux/nfsmount.c index d661a99..b260a88 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 * so it is easiest to ignore the kernel altogether (at compile time). */ -static const int NFS_MOUNT_VERSION = 4; +/* NOTE: Do not make this into a 'static const int' because the pre-processor + * needs to test this value in some #if statements. */ +#define NFS_MOUNT_VERSION 4 struct nfs2_fh { char data[32]; -- cgit v1.1