aboutsummaryrefslogtreecommitdiff
path: root/malloc/hooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'malloc/hooks.c')
-rw-r--r--malloc/hooks.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/malloc/hooks.c b/malloc/hooks.c
index e288b9c..2dc5cf5 100644
--- a/malloc/hooks.c
+++ b/malloc/hooks.c
@@ -21,7 +21,13 @@
/* $Id$ */
#ifndef weak_variable
+#ifndef _LIBC
#define weak_variable /**/
+#else
+/* In GNU libc we want the hook variables to be weak definitions to
+ avoid a problem with Emacs. */
+#define weak_variable weak_function
+#endif
#endif
#ifndef DEFAULT_CHECK_ACTION