diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-07-22 08:25:37 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-07-22 08:25:37 +0000 |
commit | dafd1d37cd1911424fcac2f002910941f7ce264f (patch) | |
tree | 836630db3fa88396d8089b63ddc2ef6f16920557 | |
parent | cb6f4bf452a6db3a0e9aadffc9fc7d2394c0b552 (diff) | |
download | busybox-w32-dafd1d37cd1911424fcac2f002910941f7ce264f.tar.gz busybox-w32-dafd1d37cd1911424fcac2f002910941f7ce264f.tar.bz2 busybox-w32-dafd1d37cd1911424fcac2f002910941f7ce264f.zip |
Error out early if people try to build mount with nfs support
using uClibc, but have not enabled UCLIBC_HAS_RPC...
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@7085 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | util-linux/mount.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c index d89e286fc..15a0b5767 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c | |||
@@ -54,6 +54,12 @@ | |||
54 | #include <ctype.h> | 54 | #include <ctype.h> |
55 | #include "busybox.h" | 55 | #include "busybox.h" |
56 | 56 | ||
57 | #ifdef CONFIG_NFSMOUNT | ||
58 | #if defined(__UCLIBC__) && ! defined(__UCLIBC_HAS_RPC__) | ||
59 | #error "You need to build uClibc with UCLIBC_HAS_RPC for busybox mount with NFS support to compile." | ||
60 | #endif | ||
61 | #endif | ||
62 | |||
57 | enum { | 63 | enum { |
58 | MS_MGC_VAL = 0xc0ed0000, /* Magic number indicatng "new" flags */ | 64 | MS_MGC_VAL = 0xc0ed0000, /* Magic number indicatng "new" flags */ |
59 | MS_RDONLY = 1, /* Mount read-only */ | 65 | MS_RDONLY = 1, /* Mount read-only */ |