You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-apps/xinetd/files/xinetd-2.3.15.3-no-rpc.patch

51 lines
1.3 KiB

https://github.com/openSUSE/xinetd/pull/8
From 4278495b1858b5b1ce94d72bd619eb79aab8ca04 Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Mon, 18 Jun 2018 18:49:38 -0400
Subject: [PATCH] fix no-rpc builds
The code base already has support for -DNO_RPC, so fix the breakage
introduced by commit 56520dcc88c35113877c8f4f52bd98ad95b44653.
---
src/confparse.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/confparse.c b/src/confparse.c
index 5b149dd03808..7965cc405f24 100644
--- a/src/confparse.c
+++ b/src/confparse.c
@@ -13,10 +13,12 @@
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
+#ifndef NO_RPC
#include <rpc/rpc.h>
#ifdef HAVE_RPCENT_H
#include <rpc/rpcent.h>
#endif
+#endif
#include <netdb.h>
#include "str.h"
@@ -730,7 +732,7 @@ static status_e check_entry( struct service_config *scp,
}
}
-/* #ifndef NO_RPC */
+#ifndef NO_RPC
if ( SC_IS_RPC( scp ) && !SC_IS_UNLISTED( scp ) )
{
struct rpcent *rep = (struct rpcent *)getrpcbyname( SC_NAME(scp) ) ;
@@ -743,6 +745,7 @@ static status_e check_entry( struct service_config *scp,
SC_RPCDATA( scp )->rd_program_number = rep->r_number ;
}
else
+#endif
{
if ( !SC_IS_UNLISTED( scp ) )
{
--
2.16.1