From f07fc9cac78851d3dfad1e8c54ee2671e6351853 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 11 Sep 2022 16:37:59 +0100 Subject: 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 or explicitly provide a declaration for 'exit' ``` Signed-off-by: Sam James --- configure.ac | 1 + 1 file changed, 1 insertion(+) 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 +#include int main() { #ifdef _PATH_MAILDIR exit(0); -- cgit v1.2.1