]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
m4: crypt_xpg6.m4 - Define _DEFAULT_SOURCE for current glibc
authorFlorian Weimer <fweimer@redhat.com>
Mon, 2 Jan 2023 09:38:18 +0000 (10:38 +0100)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Mon, 2 Jan 2023 15:10:20 +0000 (15:10 +0000)
commitdd691d40a30fc1f20f8cab3e4740a668d5f0c56f
tree89c491b6ce7b3f06b6599a64a3bfe262c6ca1393
parentd7705bc65f2ceb046a69702f34b6423bba86abae
m4: crypt_xpg6.m4 - Define _DEFAULT_SOURCE for current glibc

Current glibc no longer implements the CRYPT extension, so it does not
declare crypt in <unistd.h> in strict standard modes.  The check
defines _XOPEN_SOURCE, which enables one of these modes.  Defining
_DEFAULT_SOURCE as well again makes available the crypt function
prototype.

This avoids a configure check result change with compilers which do
not support implicit function declarations.
m4/crypt_xpg6.m4