aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndreas Jaeger <jaegerandi@gmail.com>2012-05-21 21:34:05 +0200
committerAndreas Jaeger <jaegerandi@gmail.com>2012-05-21 21:34:54 +0200
commit07c58f8f3501329340bf3c69a347f7c8fdcbe528 (patch)
treeee492594d7294a0d806d1a63a5f323cf9d6ae078 /include
parent662742187c77452c38cddababa92285cb62dbc28 (diff)
downloadglibc-07c58f8f3501329340bf3c69a347f7c8fdcbe528.tar
glibc-07c58f8f3501329340bf3c69a347f7c8fdcbe528.tar.gz
glibc-07c58f8f3501329340bf3c69a347f7c8fdcbe528.tar.bz2
glibc-07c58f8f3501329340bf3c69a347f7c8fdcbe528.zip
Fix sunrpc static library
* include/shlib-compat.h (libc_sunrpc_symbol): New macro. * sunrpc/svc_simple.c: Use it for registerrpc. * sunrpc/xcrypt.c: Use it for passwd2des.
Diffstat (limited to 'include')
-rw-r--r--include/shlib-compat.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/shlib-compat.h b/include/shlib-compat.h
index 19f1041b05..912f5423e5 100644
--- a/include/shlib-compat.h
+++ b/include/shlib-compat.h
@@ -91,4 +91,14 @@
#endif
+# ifdef LINK_OBSOLETE_RPC
+/* Export the symbol for both static and dynamic linking. */
+# define libc_sunrpc_symbol(name, aliasname, version) \
+ strong_alias (name, aliasname)
+# else
+/* Export the symbol only for shared-library compatibility. */
+# define libc_sunrpc_symbol(name, aliasname, version) \
+ compat_symbol (libc, name, aliasname, version);
+# endif
+
#endif /* shlib-compat.h */