aboutsummaryrefslogtreecommitdiff
path: root/networking/inetd.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2011-06-15 09:38:43 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2011-06-15 09:41:00 +0200
commit901a53baecd5b8a580f63eb23d481f553de72634 (patch)
treea235dff42bc3a4384a9896eae31da4358ef05e6e /networking/inetd.c
parent8ea683d5dfefa933cde9a691f14e788e1eb4b290 (diff)
downloadbusybox-901a53baecd5b8a580f63eb23d481f553de72634.tar.gz
inetd: check if RPC is available
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@gmail.com>
Diffstat (limited to 'networking/inetd.c')
-rw-r--r--networking/inetd.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/networking/inetd.c b/networking/inetd.c
index 26348fa93..873fd9528 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