summaryrefslogtreecommitdiff
path: root/www-apache/pwauth/files/pwauth-2.3.10-clang.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-09-29 09:22:29 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-09-29 09:22:29 +0100
commitb94ab464dd0d948b7e7eac833b9bb51c03515918 (patch)
tree130d52181c215cd1c3eced88bc503353a99a1fe8 /www-apache/pwauth/files/pwauth-2.3.10-clang.patch
parent62ea91b40c7650011a72ed2443f76b88b06123fe (diff)
gentoo auto-resync : 29:09:2022 - 09:22:29
Diffstat (limited to 'www-apache/pwauth/files/pwauth-2.3.10-clang.patch')
-rw-r--r--www-apache/pwauth/files/pwauth-2.3.10-clang.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/www-apache/pwauth/files/pwauth-2.3.10-clang.patch b/www-apache/pwauth/files/pwauth-2.3.10-clang.patch
new file mode 100644
index 000000000000..ac241b465dde
--- /dev/null
+++ b/www-apache/pwauth/files/pwauth-2.3.10-clang.patch
@@ -0,0 +1,39 @@
+Minimal additional fixes for with both clang16 and older clang.
+
+https://bugs.gentoo.org/870631
+See also: https://github.com/phokz/pwauth/pull/13
+--- a/auth_sun.c
++++ b/auth_sun.c
+@@ -33,2 +33,3 @@
+
++#include <time.h>
+ #include "pwauth.h"
+--- a/fail_log.c
++++ b/fail_log.c
+@@ -33,2 +33,3 @@
+
++#include <time.h>
+ #include "pwauth.h"
+@@ -72,3 +73,3 @@
+
+-void log_failure()
++void log_failure(void)
+ {
+@@ -151,3 +152,3 @@
+
+-log_failure()
++void log_failure(void)
+ {
+--- a/nologin.c
++++ b/nologin.c
+@@ -40,3 +40,3 @@
+
+-check_nologin()
++int check_nologin(void)
+ {
+--- a/pwauth.h
++++ b/pwauth.h
+@@ -133 +133,3 @@
+ int check_auth(char *login, char *passwd);
++int check_nologin(void);
++void log_failure(void);