diff options
author | Bernhard Reutner-Fischer | 2011-06-15 09:38:43 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer | 2011-06-15 09:41:00 +0200 |
commit | 901a53baecd5b8a580f63eb23d481f553de72634 (patch) | |
tree | a235dff42bc3a4384a9896eae31da4358ef05e6e /networking | |
parent | 8ea683d5dfefa933cde9a691f14e788e1eb4b290 (diff) | |
download | busybox-901a53baecd5b8a580f63eb23d481f553de72634.zip busybox-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')
-rw-r--r-- | 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 |