[git commit] inetd: check if RPC is available
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Wed Jun 15 07:41:00 UTC 2011
commit: http://git.busybox.net/busybox/commit/?id=901a53baecd5b8a580f63eb23d481f553de72634
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
It would be better to have FEATURE_HAVE_RPC be user-selectable and
depend mount.nfs and inetd-rpc on it instead of the current, backward,
way.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
networking/inetd.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/networking/inetd.c b/networking/inetd.c
index 26348fa..873fd95 100644
--- a/networking/inetd.c
+++ b/networking/inetd.c
@@ -170,8 +170,11 @@
#include "libbb.h"
#if ENABLE_FEATURE_INETD_RPC
-#include <rpc/rpc.h>
-#include <rpc/pmap_clnt.h>
+# if defined(__UCLIBC__) && ! defined(__UCLIBC_HAS_RPC__)
+# error "You need to build uClibc with UCLIBC_HAS_RPC for NFS support"
+# endif
+# include <rpc/rpc.h>
+# include <rpc/pmap_clnt.h>
#endif
#if !BB_MMU
--
1.7.3.4
More information about the busybox-cvs
mailing list