diff options
author | Andreas Jaeger <aj@suse.de> | 2012-05-10 20:16:53 +0200 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2012-05-10 20:19:53 +0200 |
commit | 021db4be6f1f4189f66feee066a495d49e92b93e (patch) | |
tree | 38d877e5dcba27bb3495cc840bc14b1a3547a076 /include | |
parent | b5c086a2814b45e0b2ab678922fcc66c7351fece (diff) | |
download | glibc-021db4be6f1f4189f66feee066a495d49e92b93e.tar glibc-021db4be6f1f4189f66feee066a495d49e92b93e.tar.gz glibc-021db4be6f1f4189f66feee066a495d49e92b93e.tar.bz2 glibc-021db4be6f1f4189f66feee066a495d49e92b93e.zip |
Make sunrpc code usable again
New configure option --enable-obsolete-rpc makes the deprecated RPC
headers and functions available at compile time as they were before
version 2.14. This option will be removed at some time in the future
after the TI-RPC library becomes fully sufficient for the needs of
existing applications.
Diffstat (limited to 'include')
-rw-r--r-- | include/libc-symbols.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/libc-symbols.h b/include/libc-symbols.h index 951e46a6e3..0c3274e253 100644 --- a/include/libc-symbols.h +++ b/include/libc-symbols.h @@ -556,7 +556,12 @@ for linking") # define libc_hidden_proto(name, attrs...) hidden_proto (name, ##attrs) # define libc_hidden_def(name) hidden_def (name) # define libc_hidden_weak(name) hidden_weak (name) -# define libc_hidden_nolink(name, version) hidden_nolink (name, libc, version) +# ifdef LINK_OBSOLETE_RPC + /* libc_hidden_nolink_sunrpc should only get used in sunrpc code. */ +# define libc_hidden_nolink_sunrpc(name, version) hidden_def (name) +# else +# define libc_hidden_nolink_sunrpc(name, version) hidden_nolink (name, libc, version) +# endif # define libc_hidden_ver(local, name) hidden_ver (local, name) # define libc_hidden_data_def(name) hidden_data_def (name) # define libc_hidden_data_weak(name) hidden_data_weak (name) |