inetd: check if RPC is available
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 15 Jun 2011 07:38:43 +0000 (09:38 +0200)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 15 Jun 2011 07:41:00 +0000 (09:41 +0200)
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>
networking/inetd.c

index 26348fa93c4e723b83f8efca6689ad6ecd373b3e..873fd95281fdd668514588c9c955a4edf99877da 100644 (file)
 #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