1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-11 14:29:17 -04:00
ports/devel/nspr/files/patch-bug301986
Jan Beich 032713d124 devel/nspr: cleanup cruft to improve style
- Remove out-of-tree build (in favor of D4157)
- Remove custom do-install (config/nsinstall works fine) [1]
- Convert to new testing framework
- Refresh patches with |make makepatch| but leave damage out [2]

[1] Requires PORTREVISION per new entry in plist and DEBUG builds
    no longer embedding WRKDIR in source file name
[2] Here's a list with * indicating severity:
    *** Lost original ptthread.c hunk from patch-bug301986
    *** Mixed patch-bug782111 into patch-bug301986
    ** Duplicated context lines
    * Wrong timestamps with USES=pathfix
2015-11-21 02:26:15 +00:00

41 lines
1.3 KiB
Text

pthread_t can well be a 64-bit value -- on FreeBSD/amd64, for example.
Better to just keep calling it pthread_t isntead of casting to anything.
-mi
--- pr/include/private/pprthred.h.orig 2015-10-16 13:22:19 UTC
+++ pr/include/private/pprthred.h
@@ -11,6 +11,7 @@
** developers only.
*/
#include "nspr.h"
+#include <pthread.h>
#if defined(XP_OS2)
#define INCL_DOS
@@ -59,7 +60,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
--- pr/src/pthreads/ptthread.c.orig 2015-10-16 13:22:19 UTC
+++ pr/src/pthreads/ptthread.c
@@ -1155,12 +1155,12 @@ PR_IMPLEMENT(void) PR_ProcessExit(PRIntn
_exit(status);
}
-PR_IMPLEMENT(PRUint32) PR_GetThreadID(PRThread *thred)
+PR_IMPLEMENT(pthread_t) PR_GetThreadID(PRThread *thred)
{
#if defined(_PR_DCETHREADS)
return (PRUint32)&thred->id; /* this is really a sham! */
#else
- return (PRUint32)thred->id; /* and I don't know what they will do with it */
+ return thred->id; /* and I don't know what they will do with it */
#endif
}