summaryrefslogtreecommitdiff
path: root/devel/nspr/patches/patch-am
blob: ba484026e6565f9f5ae92062351acce6a4431dce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-am,v 1.1 2007/09/25 04:18:27 bjs Exp $

Fix another cast of pthread_t.

--- pr/include/private/pprthred.h.orig	2004-04-25 11:00:56.000000000 -0400
+++ pr/include/private/pprthred.h
@@ -91,7 +91,11 @@ 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.
 */
+#ifndef _DONT_CAST_PTHREAD_T
 NSPR_API(PRUint32) PR_GetThreadID(PRThread *thread);
+#else
+NSPR_API(pthread_t) PR_GetThreadID(PRThread *thread);
+#endif
 
 /*
 ** Set the procedure that is called when a thread is dumped. The procedure