about summary refs log tree commit diff
path: root/malloc
diff options
context:
space:
mode:
Diffstat (limited to 'malloc')
-rw-r--r--malloc/mtrace.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/malloc/mtrace.c b/malloc/mtrace.c
index acee3c411b..5c82e1d1e4 100644
--- a/malloc/mtrace.c
+++ b/malloc/mtrace.c
@@ -44,6 +44,10 @@
 # define setvbuf(s, b, f, l) INTUSE(_IO_setvbuf) (s, b, f, l)
 #endif
 
+#ifndef attribute_hidden
+# define attribute_hidden
+#endif
+
 #define TRACE_BUFFER_SIZE 512
 
 static FILE *mallstream;
@@ -57,8 +61,8 @@ __ptr_t mallwatch;
 
 /* File name and line number information, for callers that had
    the foresight to call through a macro.  */
-char *_mtrace_file;
-int _mtrace_line;
+char *_mtrace_file attribute_hidden;
+int _mtrace_line attribute_hidden;
 
 /* Old hook values.  */
 static void (*tr_old_free_hook) __P ((__ptr_t ptr, const __ptr_t));