From: Florian Weimer Date: Mon, 2 Jan 2023 09:38:18 +0000 (+0100) Subject: m4: crypt_xpg6.m4 - Define _DEFAULT_SOURCE for current glibc X-Git-Tag: 2.4.0~3244 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd691d40a30fc1f20f8cab3e4740a668d5f0c56f;p=thirdparty%2Fdovecot%2Fcore.git 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 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. --- diff --git a/m4/crypt_xpg6.m4 b/m4/crypt_xpg6.m4 index 0085b2ac76..3a288a3713 100644 --- a/m4/crypt_xpg6.m4 +++ b/m4/crypt_xpg6.m4 @@ -6,6 +6,7 @@ AC_DEFUN([DOVECOT_CRYPT_XPG6], [ #define _XOPEN_SOURCE 4 #define _XOPEN_SOURCE_EXTENDED 1 #define _XOPEN_VERSION 4 + #define _DEFAULT_SOURCE #define _XPG4_2 #define _XPG6 #include