Browse Source

Use write instead of __libc_write for debug, hide __td_debug

Peter S. Mazinger 18 years ago
parent
commit
4594edc979

+ 2 - 2
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

+ 1 - 1
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