From dafd1d37cd1911424fcac2f002910941f7ce264f Mon Sep 17 00:00:00 2001 From: andersen Date: Tue, 22 Jul 2003 08:25:37 +0000 Subject: 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 --- util-linux/mount.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 @@ #include #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 */ -- cgit v1.2.3-55-g6feb