]> git.ipfire.org Git - thirdparty/systemd.git/commit
meson: remove false check for key_serial_t 9643/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 18 Jul 2018 15:42:06 +0000 (17:42 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 18 Jul 2018 15:46:33 +0000 (17:46 +0200)
commit1d7aedf11a22d0c1aca40905e953a25f03252cde
tree6d4669890d5115671bf7e97e3dda102f9f71ef93
parent9c869d08d82c73f62ab3527567858ce4b0cf1257
meson: remove false check for key_serial_t

key_serial_t is defined in keyutil.h, which wasn't included in the header list
in the test, so the test always failed. We were always compiling stuff with
!HAVE_KEY_SERIAL_T.

We could try to add keyutil.h to the test, but then we'd have to first check if
it is available, which just doesn't seem worth the trouble.

key_serial_t should always be defined as int32_t. Let's keep the uncoditional
define, since repeated compatible typedefs are not a problem, and it allows us
to compile even if the header file is missing. If there's ever a change in the
definition, we'll have to adjust the code for the different type anyway, and
our compiler will tell us.
meson.build
src/basic/missing.h