summaryrefslogtreecommitdiffstats
path: root/openbsd-compat
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-10-25 15:02:35 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-10-25 15:02:35 +0000
commita0bd44cc49a4b24869c952233b916961f67ac9a2 (patch)
treeed00d171377a6f1b4fbf275d00e91dba7f7dc889 /openbsd-compat
parent8ad995fd07876b6ca38c7a94a1896935d167b589 (diff)
- (bal) Use VDISABLE if _POSIX_VDISABLE is set in readpassphrase.c. Patch
by todd@
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/readpassphrase.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/openbsd-compat/readpassphrase.c b/openbsd-compat/readpassphrase.c
index 8e578552..fdef1580 100644
--- a/openbsd-compat/readpassphrase.c
+++ b/openbsd-compat/readpassphrase.c
@@ -42,6 +42,11 @@ static char rcsid[] = "$OpenBSD: readpassphrase.c,v 1.5 2001/06/27 13:23:30 djm
# define _T_FLUSH (TCSAFLUSH)
#endif
+/* SunOS 4.x which lacks _POSIX_VDISABLE, but has VDISABLE */
+#if !defined(_POSIX_VDISABLE) && defined(VDISABLE)
+# define _POSIX_VDISABLE VDISABLE
+#endif
+
char *
readpassphrase(prompt, buf, bufsiz, flags)
const char *prompt;