diff options
Diffstat (limited to 'libc/include/shlib-compat.h')
-rw-r--r-- | libc/include/shlib-compat.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libc/include/shlib-compat.h b/libc/include/shlib-compat.h index 7a84f299f..28fdd9987 100644 --- a/libc/include/shlib-compat.h +++ b/libc/include/shlib-compat.h @@ -109,4 +109,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 */ |