https://bz.apache.org/bugzilla/show_bug.cgi?id=39737

--- Comment #6 from Yann Ylavic <[email protected]> ---
Don't we need something like this?

Index: srclib/apr/strings/apr_snprintf.c
===================================================================
--- srclib/apr/strings/apr_snprintf.c   (revision 1800753)
+++ srclib/apr/strings/apr_snprintf.c   (working copy)
@@ -487,13 +487,21 @@ static char *conv_apr_sockaddr(apr_sockaddr_t *sa,
 static char *conv_os_thread_t(apr_os_thread_t *tid, char *buf_end, apr_size_t
*len)
 {
     union {
+#ifndef WIN32
         apr_os_thread_t tid;
+#else
+        DWORD tid;
+#endif
         apr_uint64_t u64;
         apr_uint32_t u32;
     } u;
     int is_negative;

+#ifndef WIN32
     u.tid = *tid;
+#else
+    u.tid = GetThreadId(*tid);
+#endif
     switch(sizeof(u.tid)) {
     case sizeof(apr_int32_t):
         return conv_10(u.u32, TRUE, &is_negative, buf_end, len);
--

(similarly for conv_os_thread_t_hex)

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to