From c69164ae0d3186022f4eea035776987f31860373 Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Tue, 2 Feb 2016 09:48:47 -0500 Subject: Don't declare setrpcent/endrpcent on glibc based systems rpc/rpcent.h declares structs and functions, which are also declared by glibc. Some of them are protected by "#if !defined(__GLIBC__)", but setrpcent/endrpcent were not. Move them into the #if statement. Else compilation of applications including netdb.h will fail, since the TIRPC declaration is slightly different from glibc. Signed-off-by: Thorsten Kukuk Signed-off-by: Steve Dickson --- tirpc/rpc/rpcent.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tirpc') diff --git a/tirpc/rpc/rpcent.h b/tirpc/rpc/rpcent.h index 147f909..e07503c 100644 --- a/tirpc/rpc/rpcent.h +++ b/tirpc/rpc/rpcent.h @@ -60,10 +60,11 @@ struct rpcent { extern struct rpcent *getrpcbyname(const char *); extern struct rpcent *getrpcbynumber(int); extern struct rpcent *getrpcent(void); -#endif extern void setrpcent(int); extern void endrpcent(void); +#endif + #ifdef __cplusplus } #endif -- cgit v1.2.1