aboutsummaryrefslogtreecommitdiff
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
parent8ea683d5dfefa933cde9a691f14e788e1eb4b290 (diff)
downloadbusybox-w32-901a53baecd5b8a580f63eb23d481f553de72634.tar.gz
busybox-w32-901a53baecd5b8a580f63eb23d481f553de72634.tar.bz2
busybox-w32-901a53baecd5b8a580f63eb23d481f553de72634.zip
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>
-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 @@
170#include "libbb.h" 170#include "libbb.h"
171 171
172#if ENABLE_FEATURE_INETD_RPC 172#if ENABLE_FEATURE_INETD_RPC
173#include <rpc/rpc.h> 173# if defined(__UCLIBC__) && ! defined(__UCLIBC_HAS_RPC__)
174#include <rpc/pmap_clnt.h> 174# error "You need to build uClibc with UCLIBC_HAS_RPC for NFS support"
175# endif
176# include <rpc/rpc.h>
177# include <rpc/pmap_clnt.h>
175#endif 178#endif
176 179
177#if !BB_MMU 180#if !BB_MMU