summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-09-11 16:37:59 +0100
committerTomáš Mráz <tm@t8m.info>2022-09-12 08:48:07 +0200
commitf07fc9cac78851d3dfad1e8c54ee2671e6351853 (patch)
treec026f681f2f9a314eb527e614e4a481b49084e6d
parent510e825ef130a843663115ec510b1237ea4708f4 (diff)
downloadlinux-pam-git-f07fc9cac78851d3dfad1e8c54ee2671e6351853.tar.gz
configure.ac: fix implicit function declaration in mail spool directory check
Fixes the following error with Clang 15 (which makes implicit function declarations an error by default): ``` +error: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] exit(0); ^ note: include the header <stdlib.h> or explicitly provide a declaration for 'exit' ``` Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 79113ad1..b12c8892 100644
--- a/configure.ac
+++ b/configure.ac
@@ -297,6 +297,7 @@ if test x$with_mailspool != x ; then
else
AC_RUN_IFELSE([AC_LANG_SOURCE([[
#include <paths.h>
+#include <stdlib.h>
int main() {
#ifdef _PATH_MAILDIR
exit(0);