]> git.ipfire.org Git - thirdparty/systemd.git/commit
meson: crypt.h must always exist
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 23 Jul 2025 04:13:29 +0000 (13:13 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 23 Jul 2025 13:13:20 +0000 (22:13 +0900)
commitfa32f4cd755f9163036e370f9074fa68f2f2799e
treec213163daa109bee48b339999778c2e12eb219d7
parenta6da6c9050e9965c1459efc231f0595c76bb41f0
meson: crypt.h must always exist

We require at least crypt_r() exists, and it is provided since glibc-2.0
(and dropped in glibc-2.39) or by libxcrypt, and the function is
provided in crypt.h regardless it is provided by glibc or libxcrypt.
Hence, we cannot fallback to unistd.h.

This makes the condition about crypt.h more strict, and stop compilation
earlier when crypt.h does not exist.
README
meson.build
src/shared/libcrypt-util.c
src/test/test-libcrypt-util.c