Differential D14137 Diff 39268 emulators/virtualbox-ose/files/patch-src_libs_xpcom18a4_nsprpub_pr_src_pthreads_ptsynch.c
Changeset View
Changeset View
Standalone View
Standalone View
emulators/virtualbox-ose/files/patch-src_libs_xpcom18a4_nsprpub_pr_src_pthreads_ptsynch.c
- This file was added.
--- src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ptsynch.c.orig | |||||
+++ src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ptsynch.c | |||||
@@ -49,6 +49,9 @@ | |||||
#include <string.h> | |||||
#include <pthread.h> | |||||
#include <sys/time.h> | |||||
+#ifdef FREEBSD | |||||
+#include <sys/param.h> | |||||
+#endif | |||||
static pthread_mutexattr_t _pt_mattr; | |||||
static pthread_condattr_t _pt_cvar_attr; | |||||
@@ -798,7 +801,8 @@ | |||||
* From the semctl(2) man page in glibc 2.0 | |||||
*/ | |||||
#if (defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)) \ | |||||
- || defined(FREEBSD) || defined(OPENBSD) || defined(BSDI) | |||||
+ || (defined(FREEBSD) && __FreeBSD_version < 1200056) \ | |||||
+ || defined(OPENBSD) || defined(BSDI) | |||||
/* union semun is defined by including <sys/sem.h> */ | |||||
#else | |||||
/* according to X/OPEN we have to define it ourselves */ |