Error out early if people try to build mount with nfs support
authorEric Andersen <andersen@codepoet.org>
Tue, 22 Jul 2003 08:25:37 +0000 (08:25 -0000)
committerEric Andersen <andersen@codepoet.org>
Tue, 22 Jul 2003 08:25:37 +0000 (08:25 -0000)
using uClibc, but have not enabled UCLIBC_HAS_RPC...
 -Erik

util-linux/mount.c

index d89e286fcdfa9265f4964f5c27db6b958463ebf1..15a0b5767d13806d23c4c7daff2855581ddb4618 100644 (file)
 #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 */