[BusyBox] It's the preprocessor, stupid

Larry Doolittle ldoolitt at recycle.lbl.gov
Tue Jan 30 18:45:47 UTC 2001


The appended patch fixes my NFS mounting problems.
The value of NFS_MOUNT_VERSION has to be known to
the preprocessor, because of directives like:
#if NFS_MOUNT_VERSION >= 3
A "static const int" isn't good enough.

       - Larry

--- /home/ldoolitt/net/busybox-0.49/nfsmount.c	Wed Jan 24 09:36:37 2001
+++ nfsmount.c	Tue Jan 30 09:52:00 2001
@@ -93,7 +93,7 @@
  * so it is easiest to ignore the kernel altogether (at compile time).
  */
 
-static const int NFS_MOUNT_VERSION = 4;
+#define NFS_MOUNT_VERSION 4
 
 struct nfs2_fh {
         char                    data[32];





More information about the busybox mailing list