summaryrefslogtreecommitdiff
path: root/www-apache/pwauth/files/pwauth-2.3.10-clang.patch
blob: ac241b465ddee9ca1621ff8502348c8538cfeef9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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);