diff options
author | Sam James <sam@gentoo.org> | 2022-09-11 16:37:59 +0100 |
---|---|---|
committer | Tomáš Mráz <tm@t8m.info> | 2022-09-12 08:48:07 +0200 |
commit | f07fc9cac78851d3dfad1e8c54ee2671e6351853 (patch) | |
tree | c026f681f2f9a314eb527e614e4a481b49084e6d /configure.ac | |
parent | 510e825ef130a843663115ec510b1237ea4708f4 (diff) | |
download | pam-f07fc9cac78851d3dfad1e8c54ee2671e6351853.tar.gz pam-f07fc9cac78851d3dfad1e8c54ee2671e6351853.tar.bz2 pam-f07fc9cac78851d3dfad1e8c54ee2671e6351853.zip |
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>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 1 |
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); |