$NetBSD: patch-ds,v 1.1 2006/06/27 11:11:52 joerg Exp $ --- nsprpub/pr/include/md/_pth.h.orig 2006-06-26 14:28:04.000000000 +0000 +++ nsprpub/pr/include/md/_pth.h @@ -93,7 +93,7 @@ #define _PT_PTHREAD_MUTEXATTR_INIT pthread_mutexattr_init #define _PT_PTHREAD_MUTEXATTR_DESTROY pthread_mutexattr_destroy #define _PT_PTHREAD_MUTEX_INIT(m, a) pthread_mutex_init(&(m), &(a)) -#if defined(FREEBSD) +#if defined(FREEBSD) || defined(DRAGONFLY) #define _PT_PTHREAD_MUTEX_IS_LOCKED(m) pt_pthread_mutex_is_locked(&(m)) #else #define _PT_PTHREAD_MUTEX_IS_LOCKED(m) (EBUSY == pthread_mutex_trylock(&(m))) @@ -144,7 +144,7 @@ #define _PT_PTHREAD_COPY_THR_HANDLE(st, dt) (dt) = (st) #elif defined(IRIX) || defined(OSF1) || defined(AIX) || defined(SOLARIS) \ || defined(LINUX) || defined(__GNU__) || defined(__GLIBC__) \ - || defined(HPUX) || defined(FREEBSD) \ + || defined(HPUX) || defined(FREEBSD) || defined(DRAGONFLY) \ || defined(NETBSD) || defined(OPENBSD) || defined(BSDI) \ || defined(VMS) || defined(NTO) || defined(DARWIN) \ || defined(UNIXWARE) || defined(RISCOS) @@ -204,7 +204,7 @@ || defined(LINUX) || defined(__GNU__)|| defined(__GLIBC__) \ || defined(FREEBSD) || defined(NETBSD) || defined(OPENBSD) \ || defined(BSDI) || defined(VMS) || defined(UNIXWARE) \ - || defined(DARWIN) + || defined(DARWIN) || defined(DRAGONFLY) #define PT_NO_SIGTIMEDWAIT #endif @@ -242,7 +242,7 @@ #endif /* defined(_PR_DCETHREADS) */ #elif defined(LINUX) || defined(__GNU__) || defined(__GLIBC__) \ - || defined(FREEBSD) + || defined(FREEBSD) || defined(DRAGONFLY) #define PT_PRIO_MIN sched_get_priority_min(SCHED_OTHER) #define PT_PRIO_MAX sched_get_priority_max(SCHED_OTHER) #elif defined(NTO) @@ -302,7 +302,7 @@ extern int (*_PT_aix_yield_fcn)(); || defined(LINUX) || defined(__GNU__) || defined(__GLIBC__) \ || defined(FREEBSD) || defined(NETBSD) || defined(OPENBSD) \ || defined(BSDI) || defined(NTO) || defined(DARWIN) \ - || defined(UNIXWARE) || defined(RISCOS) + || defined(UNIXWARE) || defined(RISCOS) || defined(DRAGONFLY) #define _PT_PTHREAD_YIELD() sched_yield() #else #error "Need to define _PT_PTHREAD_YIELD for this platform"