diff options
Diffstat (limited to 'devel/bmake/files/parse.c')
-rw-r--r-- | devel/bmake/files/parse.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/devel/bmake/files/parse.c b/devel/bmake/files/parse.c index 32d5a25829d..ca6a0131ccb 100644 --- a/devel/bmake/files/parse.c +++ b/devel/bmake/files/parse.c @@ -1,4 +1,4 @@ -/* $NetBSD: parse.c,v 1.6 2010/04/20 13:37:49 joerg Exp $ */ +/* $NetBSD: parse.c,v 1.7 2010/05/13 18:43:08 joerg Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1993 @@ -69,14 +69,14 @@ */ #ifndef MAKE_NATIVE -static char rcsid[] = "$NetBSD: parse.c,v 1.6 2010/04/20 13:37:49 joerg Exp $"; +static char rcsid[] = "$NetBSD: parse.c,v 1.7 2010/05/13 18:43:08 joerg Exp $"; #else #include <sys/cdefs.h> #ifndef lint #if 0 static char sccsid[] = "@(#)parse.c 8.3 (Berkeley) 3/19/94"; #else -__RCSID("$NetBSD: parse.c,v 1.6 2010/04/20 13:37:49 joerg Exp $"); +__RCSID("$NetBSD: parse.c,v 1.7 2010/05/13 18:43:08 joerg Exp $"); #endif #endif /* not lint */ #endif @@ -451,6 +451,7 @@ ParseErrorInternal(const char *cfname, size_t clineno, int type, va_list ap; va_start(ap, fmt); + (void)fflush(stdout); ParseVErrorInternal(stderr, cfname, clineno, type, fmt, ap); va_end(ap); @@ -489,6 +490,7 @@ Parse_Error(int type, const char *fmt, ...) } va_start(ap, fmt); + (void)fflush(stdout); ParseVErrorInternal(stderr, fname, lineno, type, fmt, ap); va_end(ap); @@ -2712,6 +2714,7 @@ Parse_File(const char *name, int fd) } while (ParseEOF() == CONTINUE); if (fatals) { + (void)fflush(stdout); (void)fprintf(stderr, "%s: Fatal errors encountered -- cannot continue\n", progname); |