[PATCH] mount: only include rpc headers when NFS is enabled

Natanael Copa natanael.copa at gmail.com
Tue Dec 15 16:06:45 UTC 2009


The uclibc-nptl branch does not have a working rpc. Busybox will still
compile with this patch, given that NFS is disabled in busybox config.

Signed-off-by: Natanael Copa <natanael.copa at gmail.com>
---
 util-linux/mount.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/util-linux/mount.c b/util-linux/mount.c
index 9d87f76..22edb12 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -66,9 +66,11 @@
 #include <sys/utsname.h>
 #undef TRUE
 #undef FALSE
+#if ENABLE_FEATURE_MOUNT_NFS
 #include <rpc/rpc.h>
 #include <rpc/pmap_prot.h>
 #include <rpc/pmap_clnt.h>
+#endif
 
 
 #if defined(__dietlibc__)
-- 
1.6.5.3



More information about the busybox mailing list