mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
sunrpc: Do not export getrpcport by default
This function looks like an NSS function, but is actually a wrapper around pmap_getport, so it should only be exported with --enable-obsolete-rpc.
This commit is contained in:
parent
ed6fc7daed
commit
afc3a2eb80
@ -66,3 +66,8 @@ getrpcport (const char *host, u_long prognum, u_long versnum, u_int proto)
|
||||
return 0;
|
||||
return pmap_getport (&addr, prognum, versnum, proto);
|
||||
}
|
||||
#ifdef SHARED
|
||||
# ifndef EXPORT_RPC_SYMBOLS
|
||||
compat_symbol (libc, getrpcport, getrpcport, GLIBC_2_0);
|
||||
# endif
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user