1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
From 209f7314efe4aae98d000843b2f4c4614aafb3a3 Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@debian.org>
Date: Tue, 14 Jan 2014 02:08:52 +0000
Subject: Weak alias definitions
Import part of libc-symbols.h from glibc.
Forwarded: no
Last-Update: 2010-03-26
Patch-Name: weak-alias.patch
---
compat.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/compat.h b/compat.h
index 706e582..89295a8 100644
--- a/compat.h
+++ b/compat.h
@@ -45,5 +45,11 @@
#define MIN(_a,_b) ((_a)<(_b)?(_a):(_b))
#endif
+/* Define ALIASNAME as a weak alias for NAME.
+ If weak aliases are not available, this defines a strong alias. */
+#define weak_alias(name, aliasname) _weak_alias (name, aliasname)
+#define _weak_alias(name, aliasname) \
+ extern __typeof (name) aliasname __attribute__ ((weak, alias (#name)));
+
#endif /* compat.h */
|