]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't declare union semun in userspace unless _WANT_SEMUN is defined.
authorbrooks <brooks@FreeBSD.org>
Fri, 2 Mar 2018 22:32:53 +0000 (22:32 +0000)
committerbrooks <brooks@FreeBSD.org>
Fri, 2 Mar 2018 22:32:53 +0000 (22:32 +0000)
commitda9d8a0895b658f4ee6d32cc956ecf56d83574c4
tree7c6b23b9ea69912cc587a70792d8f6f0a1f3a8ff
parentbd62df10595a8573bb79271b3a3b7dd983545ba2
Don't declare union semun in userspace unless _WANT_SEMUN is defined.

POSIX explicitly states that the application must declare union semun.
This makes no sense, but it is what it is.  This brings us into line
with Linux, MacOS/Darwin, and NetBSD.

In a ports exp-run a moderate number of ports fail due to a lack of
approprate autotools-like discovery mechanisms or local patches.  A
commit to address them will follow shortly.

PR: 224300, 224443 (exp-run)
Reviewed by: emaste, jhb, kib
Exp-run by: antoine
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D14492
contrib/sendmail/include/sm/os/sm_os_freebsd.h
lib/libc/gen/semctl.c
lib/libc/sys/semctl.2
sys/sys/param.h
sys/sys/sem.h
usr.bin/svn/lib/libapr/apr.h