d790a89073566f1ffeb5e3210e5f3bd7c6a273fa
[openwrt/svn-archive/archive.git] / net / xinetd / patches / 003-rpc_fix.patch
1 --- a/xinetd/confparse.c
2 +++ b/xinetd/confparse.c
3 @@ -716,7 +716,7 @@ static status_e check_entry( struct serv
4 }
5 }
6
7 -/* #ifndef NO_RPC */
8 +#ifndef NO_RPC
9 #if defined(HAVE_RPC_RPCENT_H) || defined(HAVE_NETDB_H)
10 if ( SC_IS_RPC( scp ) && !SC_IS_UNLISTED( scp ) )
11 {
12 @@ -730,6 +730,7 @@ static status_e check_entry( struct serv
13 SC_RPCDATA( scp )->rd_program_number = rep->r_number ;
14 }
15 else
16 +#endif
17 #endif /* ! NO_RPC */
18 {
19 if ( !SC_IS_UNLISTED( scp ) )