소스 검색

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