]> err.no Git - util-linux/commit
build-sys: check for union semun instead of using _SEM_SEMUN_UNDEFINED
authorGuillem Jover <guillem@hadrons.org>
Thu, 8 Oct 2009 11:40:11 +0000 (13:40 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 9 Oct 2009 13:16:25 +0000 (15:16 +0200)
commit869829e457cf7ca79c7f3f997088af8cb70aff77
tree3cd165e9c53444ba2a5ee39869ff4582899bec84
parenteb35c251749f5d0be06234ec70a0b7a075e5d880
build-sys: check for union semun instead of using _SEM_SEMUN_UNDEFINED

Older versions of glibc used to declare ‘union semun’ in <sys/sem.h>,
but POSIX.1-2001 requires the caller to declare it instead. Later
versions of glibc started defining _SEM_SEMUN_UNDEFINED to note that
the union was not being declared, but conforming systems are not
required to define that macro (e.g. FreeBSD). As a side effect we get
rid of some obsolete __GNU_LIBRARY__ macro usage.

[kzak@redhat.com: - use #ifndef]

Signed-off-by: Guillem Jover <guillem@hadrons.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac
sys-utils/ipcrm.c
sys-utils/ipcs.c