aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pwauth/20-fix-warnings.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/pwauth/20-fix-warnings.patch')
-rw-r--r--testing/pwauth/20-fix-warnings.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/pwauth/20-fix-warnings.patch b/testing/pwauth/20-fix-warnings.patch
new file mode 100644
index 0000000000..f57fb75712
--- /dev/null
+++ b/testing/pwauth/20-fix-warnings.patch
@@ -0,0 +1,25 @@
+--- pwauth-2.3.11.orig/auth_sun.c
++++ pwauth-2.3.11/auth_sun.c
+@@ -32,6 +32,9 @@
+ */
+
+ #include "pwauth.h"
++#if defined(CHECK_LOGIN_EXPIRATION) || defined(CHECK_PASSWORD_EXPIRATION)
++#include <time.h>
++#endif
+
+ #ifdef SHADOW_SUN
+ #ifdef NEED_UID
+--- pwauth-2.3.11.orig/main.c
++++ pwauth-2.3.11/main.c
+@@ -43,8 +43,9 @@
+ int server_uids[]= {SERVER_UIDS, 0};
+ #endif
+
++int check_auth(char *login, char *passwd);
+
+-main(int argc, char **argv)
++void main(int argc, char **argv)
+ {
+ #ifdef ENV_METHOD
+ char *login, *passwd;