1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

devel/nspr: drop _WANT_SEMUN

This commit is contained in:
Jan Beich 2018-03-13 13:47:49 +00:00
parent db5e8d516e
commit 9a6279ef03
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=464373
2 changed files with 16 additions and 1 deletions

View File

@ -18,7 +18,6 @@ CPE_PRODUCT= netscape_portable_runtime
WRKSRC_SUBDIR= nspr
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CFLAGS+= -D_WANT_SEMUN
OPTIONS_DEFINE= DEBUG TEST

View File

@ -0,0 +1,16 @@
Unbreak build on FreeBSD 12 or later
diff --git pr/src/pthreads/ptsynch.c pr/src/pthreads/ptsynch.c
index a93b74795..126bed670 100644
--- pr/src/pthreads/ptsynch.c
+++ pr/src/pthreads/ptsynch.c
@@ -911,7 +911,8 @@ PR_IMPLEMENT(PRStatus) PR_DeleteSemaphore(const char *name)
* 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 < 1200059) \
+ || defined(OPENBSD) || defined(BSDI) \
|| defined(DARWIN) || defined(SYMBIAN)
/* union semun is defined by including <sys/sem.h> */
#else