--- src/ptlib/unix/tlib.cxx.orig 2007-10-19 08:22:32.000000000 +0200 +++ src/ptlib/unix/tlib.cxx 2018-04-16 08:13:17.135859000 +0200 @@ -312,7 +312,7 @@ #include #endif -#if defined(P_LINUX) || defined(P_SUN4) || defined(P_SOLARIS) || defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_MACOSX) || defined(P_MACOS) || defined (P_AIX) || defined(__BEOS__) || defined(P_IRIX) || defined(P_QNX) +#if defined(P_LINUX) || defined(P_SUN4) || defined(P_SOLARIS) || defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_MACOSX) || defined(P_MACOS) || defined (P_AIX) || defined(__BEOS__) || defined(P_IRIX) || defined(P_QNX) || defined(__BSDSUniX__) #include #define HAS_UNAME #elif defined(P_RTEMS) @@ -642,7 +642,7 @@ { if (PProcessInstance != NULL) { PWaitAndSignal m(PProcessInstance->threadMutex); - PThread & thread = PProcessInstance->activeThreads[(unsigned)id]; + PThread & thread = PProcessInstance->activeThreads[(uintptr_t)id]; return thread.GetThreadName(); } return psprintf("%08x", id);