summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-02-03 14:33:12 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-02-03 14:33:12 +0000
commit4594edc979cedff5be1dc17d8a3d3dcc365f36bc (patch)
treea7a2612064cc5e7b7aa72bf51447ba738ef58b09
parent8bdad7ecff03268b7e3fd54270a08e19770f6eaf (diff)
Use write instead of __libc_write for debug, hide __td_debug
-rw-r--r--libpthread/linuxthreads.old_db/thread_dbP.h4
-rw-r--r--libpthread/linuxthreads_db/thread_dbP.h2
2 files changed, 3 insertions, 3 deletions
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