aboutsummaryrefslogtreecommitdiffstats
path: root/devel/pwlib
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-03-13 21:25:05 +0800
committermiwi <miwi@FreeBSD.org>2007-03-13 21:25:05 +0800
commit4217ac8bcb1861d8ed7d1810dd99dccf396adc02 (patch)
tree4311d8c56ee9710a31e9bb521865298949faccf0 /devel/pwlib
parent36fe4e77c64429dbef6557a9d3d453a69961d7ec (diff)
downloadfreebsd-ports-gnome-4217ac8bcb1861d8ed7d1810dd99dccf396adc02.tar.gz
freebsd-ports-gnome-4217ac8bcb1861d8ed7d1810dd99dccf396adc02.tar.zst
freebsd-ports-gnome-4217ac8bcb1861d8ed7d1810dd99dccf396adc02.zip
- Fix build with amd64 and gcc4.1
PR: 110243 Submitted by: Steve Ames <steve@energistic.com> (maintainer)
Diffstat (limited to 'devel/pwlib')
-rw-r--r--devel/pwlib/files/patch-src-ptlib-unix-svcproc.cxx26
1 files changed, 26 insertions, 0 deletions
diff --git a/devel/pwlib/files/patch-src-ptlib-unix-svcproc.cxx b/devel/pwlib/files/patch-src-ptlib-unix-svcproc.cxx
new file mode 100644
index 000000000000..0755ea566c87
--- /dev/null
+++ b/devel/pwlib/files/patch-src-ptlib-unix-svcproc.cxx
@@ -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();