pkgsrc/devel/nspr/patches/patch-az
ryoon 0610bb73d4 Update to 4.12
Changelog:
The NSPR 4.12 release is now available.  The hg tag is
NSPR_4_12_RTM.  The source tar file can be downloaded from
https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.12/src/

NSPR 4.12 has the following bug fixes:

* added a PR_GetEnvSecure function, which attempts to detect if the program
  is being executed with elevated privileges, and returns NULL if detected.
  It is recommended to use this function in general purpose library code.

* fixed a memory allocation bug related to the PR_*printf functions

* exported API PR_DuplicateEnvironment, which had already been added in
  NSPR 4.10.9

* added support for FreeBSD aarch64

* several minor correctness and compatibility fixes
2016-02-17 21:58:26 +00:00

21 lines
701 B
Text

$NetBSD: patch-az,v 1.4 2016/02/17 21:58:26 ryoon Exp $
https://bugzilla.mozilla.org/show_bug.cgi?id=782111
--- nsprpub/pr/src/pthreads/ptthread.c.orig 2012-06-22 01:36:02.000000000 +0000
+++ nspr/pr/src/pthreads/ptthread.c
@@ -1041,12 +1045,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
}