summaryrefslogtreecommitdiff
path: root/security/pam-pgsql/files/patch-pam_get_pass.c
blob: 103509d63314add8e4a1aafe7bebd9cf86f907b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- pam_get_pass.c.orig	Wed May 25 21:02:56 2005
+++ pam_get_pass.c	Thu Aug 18 21:25:11 2005
@@ -34,7 +34,16 @@
 #include <stdlib.h>
 #include <string.h>
 #include <security/pam_modules.h>
+#include <security/pam_appl.h>
 #include "pam_mod_misc.h"
+
+#ifdef __FreeBSD__
+#include <sys/param.h>
+#endif
+
+#if (defined(__FreeBSD__) && __FreeBSD_version > 500000)
+#define PAM_AUTHTOK_RECOVER_ERR PAM_AUTHTOK_RECOVERY_ERR
+#endif
 
 static int
 pam_conv_pass(pam_handle_t *pamh, int pam_item, const char *prompt, int options)