blob: 8e863a594fb36447b1083eb3ab82b829a32f6645 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$NetBSD: patch-ba,v 1.8 2012/04/28 22:48:06 ryoon Exp $
pthread_t may be 64-bit, avoid casting it.
--- mozilla/nsprpub/pr/include/private/pprthred.h.orig 2012-04-23 06:28:14.000000000 +0000
+++ mozilla/nsprpub/pr/include/private/pprthred.h
@@ -51,6 +51,8 @@
#include <os2.h>
#endif
+#include <pthread.h>
+
PR_BEGIN_EXTERN_C
/*---------------------------------------------------------------------------
@@ -91,7 +93,7 @@ NSPR_API(void) PR_DetachThread(void);
** Get the id of the named thread. Each thread is assigned a unique id
** when it is created or attached.
*/
-NSPR_API(PRUint32) PR_GetThreadID(PRThread *thread);
+NSPR_API(pthread_t) PR_GetThreadID(PRThread *thread);
/*
** Set the procedure that is called when a thread is dumped. The procedure
|