summaryrefslogtreecommitdiff
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 8e5785520..fdef15809 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
42# define _T_FLUSH (TCSAFLUSH) 42# define _T_FLUSH (TCSAFLUSH)
43#endif 43#endif
44 44
45/* SunOS 4.x which lacks _POSIX_VDISABLE, but has VDISABLE */
46#if !defined(_POSIX_VDISABLE) && defined(VDISABLE)
47# define _POSIX_VDISABLE VDISABLE
48#endif
49
45char * 50char *
46readpassphrase(prompt, buf, bufsiz, flags) 51readpassphrase(prompt, buf, bufsiz, flags)
47 const char *prompt; 52 const char *prompt;