]> 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 05:29:28 +0000 (00:29 -0500)
commitd237a93af39a489c86ec0142fa05b2af17505d13
tree1ef3608ff7bb5760e9527791738692d62d3dee96
parent4d4952a63dd231110cd91d2e88c75ad56aa2726f
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