inetd,mount: do not die if uclibc without RPC is detected
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 10 Jul 2017 12:43:22 +0000 (14:43 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 10 Jul 2017 12:43:22 +0000 (14:43 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/inetd.c
util-linux/mount.c

index 39169a935f52d848481504e738ac57261cc37480..3bf157b70d8a9c1006b2477ae4afaf95fa27ab6a 100644 (file)
 
 #if ENABLE_FEATURE_INETD_RPC
 # if defined(__UCLIBC__) && ! defined(__UCLIBC_HAS_RPC__)
-#  error "You need to build uClibc with UCLIBC_HAS_RPC for NFS support"
+#  warning "You probably need to build uClibc with UCLIBC_HAS_RPC for NFS support"
+   /* not #error, since user may be using e.g. libtirpc instead */
 # endif
 # include <rpc/rpc.h>
 # include <rpc/pmap_clnt.h>
index 6bb18524dcb7365708458035581972a4b8b317c9..5fcc7958ce33c7d8fceb2cf976a931a6e50addc6 100644 (file)
 /* This is just a warning of a common mistake.  Possibly this should be a
  * uclibc faq entry rather than in busybox... */
 # if defined(__UCLIBC__) && ! defined(__UCLIBC_HAS_RPC__)
-#  error "You need to build uClibc with UCLIBC_HAS_RPC for NFS support"
+#  warning "You probably need to build uClibc with UCLIBC_HAS_RPC for NFS support"
+   /* not #error, since user may be using e.g. libtirpc instead */
 # endif
 # include <rpc/rpc.h>
 # include <rpc/pmap_prot.h>