From 81b8f20732954c4508baf2f77472b5435e3f851f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 14 Sep 2022 11:10:11 +0100 Subject: gentoo auto-resync : 14:09:2022 - 11:10:10 --- ...am-1.5.2-clang-15-configure-implicit-func.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 sys-libs/pam/files/pam-1.5.2-clang-15-configure-implicit-func.patch (limited to 'sys-libs/pam/files') diff --git a/sys-libs/pam/files/pam-1.5.2-clang-15-configure-implicit-func.patch b/sys-libs/pam/files/pam-1.5.2-clang-15-configure-implicit-func.patch new file mode 100644 index 000000000000..5ad7b8c4776e --- /dev/null +++ b/sys-libs/pam/files/pam-1.5.2-clang-15-configure-implicit-func.patch @@ -0,0 +1,29 @@ +https://github.com/linux-pam/linux-pam/pull/490 + +From 5fccc4cbac82b4677af28b59e7a657c86acab7fc Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Sun, 11 Sep 2022 16:37:59 +0100 +Subject: [PATCH] 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 +--- 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.3