From a0bd44cc49a4b24869c952233b916961f67ac9a2 Mon Sep 17 00:00:00 2001 From: Ben Lindstrom Date: Thu, 25 Oct 2001 15:02:35 +0000 Subject: [PATCH] - (bal) Use VDISABLE if _POSIX_VDISABLE is set in readpassphrase.c. Patch by todd@ --- ChangeLog | 6 +++++- openbsd-compat/readpassphrase.c | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8b3a312d9..3f6388b5e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +20011025 + - (bal) Use VDISABLE if _POSIX_VDISABLE is set in readpassphrase.c. Patch + by todd@ + 20011024 - (bal) Should be 3.0p1 not 3.0p2. Corrected version.h already. - (tim) configure.in -> configure.ac @@ -6756,4 +6760,4 @@ - Wrote replacements for strlcpy and mkdtemp - Released 1.0pre1 -$Id: ChangeLog,v 1.1616 2001/10/25 04:15:26 tim Exp $ +$Id: ChangeLog,v 1.1617 2001/10/25 15:02:35 mouring Exp $ 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 # 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;