aboutsummaryrefslogtreecommitdiff
path: root/nfsmount.c
diff options
context:
space:
mode:
authorMark Whitley <markw@lineo.com>2001-01-30 18:53:42 +0000
committerMark Whitley <markw@lineo.com>2001-01-30 18:53:42 +0000
commit85260673367011a08c262891bb40cb65418fa720 (patch)
tree66c4907f4135921562119bf333206d83448863b8 /nfsmount.c
parente57d54b456bf091aded43fc95bee9b05e7461dd0 (diff)
downloadbusybox-85260673367011a08c262891bb40cb65418fa720.tar.gz
Applied patch from Larry Doolittle to use preprocessor for defining
NFS_MOUNT_VERSION.
Diffstat (limited to 'nfsmount.c')
-rw-r--r--nfsmount.c4
1 files changed, 3 insertions, 1 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
* 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];