diff options
| author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2005-07-13 03:14:59 +0000 |
|---|---|---|
| committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2005-07-13 03:14:59 +0000 |
| commit | 34586a076e0e9fa102b29ac6042dd7d01041bea1 (patch) | |
| tree | eef115268940193258c2d105a0bc70816f801a55 /devel/nspr/files/patch-pthread_t | |
| parent | Markup fixed version of net-snmp problem. (diff) | |
Update to 4.6 which incorporates a lot of our local patches. There are now
a slew of test suites that can be run by issuing ``make tests'' from the port
directory. They are disabled furing a normal build.
PR: 83345
Submitted by: mi
Notes
Notes:
svn path=/head/; revision=139021
Diffstat (limited to 'devel/nspr/files/patch-pthread_t')
| -rw-r--r-- | devel/nspr/files/patch-pthread_t | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/devel/nspr/files/patch-pthread_t b/devel/nspr/files/patch-pthread_t new file mode 100644 index 000000000000..e763d64cecd2 --- /dev/null +++ b/devel/nspr/files/patch-pthread_t @@ -0,0 +1,35 @@ +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 Sun Apr 25 11:00:56 2004 ++++ ../pr/include/private/pprthred.h Tue Jul 12 00:52:42 2005 +@@ -44,4 +44,5 @@ + */ + #include "nspr.h" ++#include <pthread.h> + + #if defined(XP_OS2) +@@ -92,5 +92,5 @@ + ** when it is created or attached. + */ +-NSPR_API(PRUint32) PR_GetThreadID(PRThread *thread); ++NSPR_API(pthread_t) PR_GetThreadID(PRThread *thread); + + /* +--- ../pr/src/pthreads/ptthread.c Wed May 25 22:27:51 2005 ++++ ../pr/src/pthreads/ptthread.c Tue Jul 12 00:49:50 2005 +@@ -979,10 +979,10 @@ + } + +-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 + } |
