Преглед на файлове

Use write instead of __libc_write for debug, hide __td_debug

Peter S. Mazinger преди 19 години
родител
ревизия
4594edc979
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 2 2
      libpthread/linuxthreads.old_db/thread_dbP.h
  2. 1 1
      libpthread/linuxthreads_db/thread_dbP.h

+ 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