0003-rpc-fix.patch 757 B

1234567891011121314151617181920212223242526
  1. This patch fixes compiling xinetd without RPC support.
  2. The content of this patch was copied from the OpenWrt project:
  3. https://dev.openwrt.org/browser/packages/net/xinetd/patches/003-rpc_fix.patch
  4. Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com>
  5. --- a/xinetd/confparse.c
  6. +++ b/xinetd/confparse.c
  7. @@ -745,7 +745,7 @@ static status_e check_entry( struct serv
  8. }
  9. }
  10. -/* #ifndef NO_RPC */
  11. +#ifndef NO_RPC
  12. #if defined(HAVE_RPC_RPCENT_H) || defined(HAVE_NETDB_H)
  13. if ( SC_IS_RPC( scp ) && !SC_IS_UNLISTED( scp ) )
  14. {
  15. @@ -759,6 +759,7 @@ static status_e check_entry( struct serv
  16. SC_RPCDATA( scp )->rd_program_number = rep->r_number ;
  17. }
  18. else
  19. +#endif
  20. #endif /* ! NO_RPC */
  21. {
  22. if ( !SC_IS_UNLISTED( scp ) )