From 4594edc979cedff5be1dc17d8a3d3dcc365f36bc Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Fri, 3 Feb 2006 14:33:12 +0000 Subject: Use write instead of __libc_write for debug, hide __td_debug --- libpthread/linuxthreads.old_db/thread_dbP.h | 4 ++-- libpthread/linuxthreads_db/thread_dbP.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'libpthread') diff --git a/libpthread/linuxthreads.old_db/thread_dbP.h b/libpthread/linuxthreads.old_db/thread_dbP.h index 7f3800328..33d6bde01 100644 --- a/libpthread/linuxthreads.old_db/thread_dbP.h +++ b/libpthread/linuxthreads.old_db/thread_dbP.h @@ -33,8 +33,8 @@ enum /* Comment out the following for less verbose output. */ #ifndef NDEBUG -# define LOG(c) if (__td_debug) __libc_write (2, c "\n", strlen (c "\n")) -extern int __td_debug; +# define LOG(c) if (__td_debug) write (2, c "\n", strlen (c "\n")) +extern int __td_debug attribute_hidden; #else # define LOG(c) #endif diff --git a/libpthread/linuxthreads_db/thread_dbP.h b/libpthread/linuxthreads_db/thread_dbP.h index 52b420c9c..aa3b53314 100644 --- a/libpthread/linuxthreads_db/thread_dbP.h +++ b/libpthread/linuxthreads_db/thread_dbP.h @@ -32,7 +32,7 @@ enum /* Comment out the following for less verbose output. */ #ifndef NDEBUG # define LOG(c) if (__td_debug) write (2, c "\n", strlen (c "\n")) -extern int __td_debug; +extern int __td_debug attribute_hidden; #else # define LOG(c) #endif -- cgit v1.2.3