[git commit branch/1_27_stable] inetd, mount: do not die if uclibc without RPC is detected

Denys Vlasenko vda.linux at googlemail.com
Tue Jul 18 17:20:58 UTC 2017


commit: https://git.busybox.net/busybox/commit/?id=f807b8e96e308eeb32d466733060bcfb623b57f1
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/1_27_stable

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 networking/inetd.c | 3 ++-
 util-linux/mount.c | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/networking/inetd.c b/networking/inetd.c
index 39169a9..3bf157b 100644
--- a/networking/inetd.c
+++ b/networking/inetd.c
@@ -227,7 +227,8 @@
 
 #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>
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 6bb1852..5fcc795 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -246,7 +246,8 @@
 /* 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>


More information about the busybox-cvs mailing list