From 901a53baecd5b8a580f63eb23d481f553de72634 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Wed, 15 Jun 2011 09:38:43 +0200 Subject: 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 --- networking/inetd.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'networking') 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 -#include +# if defined(__UCLIBC__) && ! defined(__UCLIBC_HAS_RPC__) +# error "You need to build uClibc with UCLIBC_HAS_RPC for NFS support" +# endif +# include +# include #endif #if !BB_MMU -- cgit v1.1