chiark / gitweb /
build-sys: fix type detection
authorLennart Poettering <lennart@poettering.net>
Mon, 15 Feb 2016 18:06:01 +0000 (19:06 +0100)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:57 +0000 (10:12 +0200)
commit5526a2b4ae412d808edde379a370f250f16a73a8
tree9532dee127b2a693e542ede3bd1104669378fde8
parent321944052ce227a1d9b26d268772c7c076d57960
build-sys: fix type detection

Before this patch existence of char16_t, char32_t, key_serial_t was checked
with AC_CHECK_DECLS() which doesn't actually work for types. Correct this to
use AC_CHECK_TYPES() instead.

Also, while we are at it, change the check for memfd_create() to use
AC_CHECK_DECLS() instead of AC_CHECK_FUNCS(). This is a better choice, since a
couple of syscalls are defined by glibc but not exported in the header files
(pivot_root() for example), and we hence should probably be more picky with
memfd_create() too, which glibc might decide to expose one day, but not
necessarily in the headers too.
src/basic/missing.h