]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
sim: ppc: merge System V semaphores checks
authorMike Frysinger <vapier@gentoo.org>
Tue, 2 Jan 2024 01:03:26 +0000 (20:03 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 2 Jan 2024 01:04:37 +0000 (20:04 -0500)
commiteebc029bade8c537eeb92896291f50dd9591884e
treed2c4705fc3b666ddcd80f1f703839c47ccd3b0c0
parenteb0b6910b9d02777f40eb07b81b1dad46fdd5471
sim: ppc: merge System V semaphores checks

Compile tests can use earlier defines, so hoist the HAVE_UNION_SEMUN
define to before the semaphore check, and use it in the test so that
we can merge the 2 versions into one.

This also defines HAVE_UNION_SEMUN even when ac_cv_sysv_sem is not
set, but that's OK as this define is only about a type existing, not
about whether the overall code is usable.
sim/ppc/configure
sim/ppc/configure.ac