mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Fix build with amd64 and gcc4.1
PR: 110243 Submitted by: Steve Ames <steve@energistic.com> (maintainer)
This commit is contained in:
parent
b557d03f31
commit
7098fccb85
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=187311
1 changed files with 26 additions and 0 deletions
26
devel/pwlib/files/patch-src-ptlib-unix-svcproc.cxx
Normal file
26
devel/pwlib/files/patch-src-ptlib-unix-svcproc.cxx
Normal file
|
@ -0,0 +1,26 @@
|
|||
--- src/ptlib/unix/svcproc.cxx.orig Mon Mar 12 17:03:44 2007
|
||||
+++ src/ptlib/unix/svcproc.cxx Mon Mar 12 17:04:53 2007
|
||||
@@ -388,7 +388,7 @@
|
||||
#elif defined(BE_THREADS)
|
||||
thread_id tid = ::find_thread(NULL);
|
||||
#else
|
||||
- unsigned tid = (unsigned) pthread_self();
|
||||
+ unsigned long tid = (unsigned long) pthread_self();
|
||||
#endif
|
||||
*out << "ThreadID=0x"
|
||||
<< setfill('0') << ::hex
|
||||
@@ -938,12 +938,12 @@
|
||||
#elif defined(BE_THREADS)
|
||||
thread_id tid = ::find_thread(NULL);
|
||||
#else
|
||||
- unsigned tid = (unsigned) pthread_self();
|
||||
+ unsigned long tid = (unsigned long) pthread_self();
|
||||
#endif
|
||||
PThread * thread_ptr = activeThreads.GetAt(tid);
|
||||
|
||||
char msg[200];
|
||||
- sprintf(msg, "\nCaught %s, thread_id=%u", sigmsg, tid);
|
||||
+ sprintf(msg, "\nCaught %s, thread_id=%xu", sigmsg, tid);
|
||||
|
||||
if (thread_ptr != NULL) {
|
||||
PString thread_name = thread_ptr->GetThreadName();
|
Loading…
Add table
Reference in a new issue