View | Details | Raw Unified | Return to bug 110243
Collapse All | Expand All

(-)pwlib/files/patch-src-ptlib-unix-svcproc.cxx (+26 lines)
Line 0 Link Here
1
--- src/ptlib/unix/svcproc.cxx.orig	Mon Mar 12 17:03:44 2007
2
+++ src/ptlib/unix/svcproc.cxx	Mon Mar 12 17:04:53 2007
3
@@ -388,7 +388,7 @@
4
 #elif defined(BE_THREADS)
5
       thread_id tid = ::find_thread(NULL);
6
 #else
7
-      unsigned tid = (unsigned) pthread_self();
8
+      unsigned long tid = (unsigned long) pthread_self();
9
 #endif
10
       *out << "ThreadID=0x"
11
            << setfill('0') << ::hex
12
@@ -938,12 +938,12 @@
13
 #elif defined(BE_THREADS)
14
   thread_id tid = ::find_thread(NULL);
15
 #else
16
-  unsigned tid = (unsigned) pthread_self();
17
+  unsigned long tid = (unsigned long) pthread_self();
18
 #endif
19
   PThread * thread_ptr = activeThreads.GetAt(tid);
20
 
21
   char msg[200];
22
-  sprintf(msg, "\nCaught %s, thread_id=%u", sigmsg, tid);
23
+  sprintf(msg, "\nCaught %s, thread_id=%xu", sigmsg, tid);
24
 
25
   if (thread_ptr != NULL) {
26
     PString thread_name = thread_ptr->GetThreadName();

Return to bug 110243