aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2005-11-30 08:42:30 +0000
committerMartin Schlemmer <azarah@gentoo.org>2005-11-30 08:42:30 +0000
commit590230a9446151277bd8e6613bcc729b5570a0d6 (patch)
tree957ae4a81dcab8c2b087f11ba3a6682709b58a4e /localdecls.h
parentRevert 64bit arch test, as we should build the 32bit version without full (diff)
downloadsandbox-590230a9446151277bd8e6613bcc729b5570a0d6.tar.gz
sandbox-590230a9446151277bd8e6613bcc729b5570a0d6.tar.bz2
sandbox-590230a9446151277bd8e6613bcc729b5570a0d6.zip
Move dlvsym define. Add symbol_version macros.
Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
Diffstat (limited to 'localdecls.h')
-rw-r--r--localdecls.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/localdecls.h b/localdecls.h
index 54fc2a0..66733b6 100644
--- a/localdecls.h
+++ b/localdecls.h
@@ -46,4 +46,14 @@
# define SB_STATIC
#endif
+#if !HAVE_DLVSYM
+# define dlvsym(lib, sym, ver) dlsym(lib, sym)
+#endif
+
+/* from glibc */
+# define symbol_version(real, name, version) \
+ __asm__ (".symver " #real "," #name "@" #version)
+# define default_symbol_version(real, name, version) \
+ __asm__ (".symver " #real "," #name "@@" #version)
+
#endif