summaryrefslogtreecommitdiff
path: root/util-linux/mount.c
diff options
context:
space:
mode:
authorEric Andersen2003-07-22 08:25:37 +0000
committerEric Andersen2003-07-22 08:25:37 +0000
commitd9fe958921259372327a76307131e32a44fe15ad (patch)
tree836630db3fa88396d8089b63ddc2ef6f16920557 /util-linux/mount.c
parent680ec6eeae1867cfbab5a1beeffafd74ef397703 (diff)
downloadbusybox-d9fe958921259372327a76307131e32a44fe15ad.zip
busybox-d9fe958921259372327a76307131e32a44fe15ad.tar.gz
Error out early if people try to build mount with nfs support
using uClibc, but have not enabled UCLIBC_HAS_RPC... -Erik
Diffstat (limited to 'util-linux/mount.c')
-rw-r--r--util-linux/mount.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index d89e286..15a0b57 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -54,6 +54,12 @@
#include <ctype.h>
#include "busybox.h"
+#ifdef CONFIG_NFSMOUNT
+#if defined(__UCLIBC__) && ! defined(__UCLIBC_HAS_RPC__)
+#error "You need to build uClibc with UCLIBC_HAS_RPC for busybox mount with NFS support to compile."
+#endif
+#endif
+
enum {
MS_MGC_VAL = 0xc0ed0000, /* Magic number indicatng "new" flags */
MS_RDONLY = 1, /* Mount read-only */