$NetBSD: patch-ac,v 1.2 2009/03/18 11:57:16 jmcneill Exp $

--- src/ptlib/unix/tlib.cxx.orig	2009-03-17 23:43:30.000000000 -0400
+++ src/ptlib/unix/tlib.cxx
@@ -400,7 +400,7 @@ PString PX_GetThreadName(pthread_t id)
 {
   if (PProcessInstance != NULL) {
     PWaitAndSignal m(PProcessInstance->activeThreadMutex);
-    PThread & thread = PProcessInstance->activeThreads[(unsigned)id];
+    PThread & thread = PProcessInstance->activeThreads[(uintptr_t)id];
     return thread.GetThreadName();
   }
   return psprintf("%08x", id);
