1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/security/pam-pgsql/files/patch-pam_get_pass.c
Sergey Matveychuk e69c4117d8 - Update to 0.6.1.
- Unbreak.

Approved by:	portmgr (krion)
2005-08-18 19:38:29 +00:00

20 lines
524 B
C

--- 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)