diff options
author | Thorsten Kukuk <kukuk@thkukuk.de> | 2016-02-02 09:48:47 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2016-02-02 09:48:47 -0500 |
commit | c69164ae0d3186022f4eea035776987f31860373 (patch) | |
tree | 654d77b2f32e610489c19d69ce5199f1652abb6f /tirpc | |
parent | c301db9dfd3f58ee1a286c5d421eb82c0daa5187 (diff) | |
download | ti-rpc-c69164ae0d3186022f4eea035776987f31860373.tar.gz |
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 <kukuk@thkukuk.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'tirpc')
-rw-r--r-- | tirpc/rpc/rpcent.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 |