$OpenBSD: patch-provider_server_ECThreadManager_cpp,v 1.8 2016/04/20 18:38:41 robert Exp $
--- provider/server/ECThreadManager.cpp.orig	Wed Apr 20 13:13:54 2016
+++ provider/server/ECThreadManager.cpp	Wed Apr 20 19:54:13 2016
@@ -143,7 +143,7 @@ void *ECWorkerThread::Work(void *lpParam)
 	// Win32 pthread_t is a struct, which we can't cast to a ULONG.
     lpThis->m_lpLogger->Log(EC_LOGLEVEL_DEBUG, "Started%sthread %p", lpPrio ? " priority " : " ", pthread_self().p);
 #else
-    lpThis->m_lpLogger->Log(EC_LOGLEVEL_DEBUG, "Started%sthread %08x", lpPrio ? " priority " : " ", (ULONG)pthread_self());
+    lpThis->m_lpLogger->Log(EC_LOGLEVEL_DEBUG, "Started%sthread %08x", lpPrio ? " priority " : " ", (uintptr_t)pthread_self());
 #endif
     
     while(1) {
@@ -160,7 +160,7 @@ void *ECWorkerThread::Work(void *lpParam)
 				// Win32 pthread_t is a struct, which we can't cast to a ULONG.
 				lpThis->m_lpLogger->Log(EC_LOGLEVEL_DEBUG, "Thread %p idle and requested to exit", pthread_self().p);
 #else
-                lpThis->m_lpLogger->Log(EC_LOGLEVEL_DEBUG, "Thread %08x idle and requested to exit", (ULONG)pthread_self());
+                lpThis->m_lpLogger->Log(EC_LOGLEVEL_DEBUG, "Thread %08x idle and requested to exit", (uintptr_t)pthread_self());
 #endif
                 break;
             }
