diff options
Diffstat (limited to 'cad/magic/patches/patch-utils_LIBtextio.c')
-rw-r--r-- | cad/magic/patches/patch-utils_LIBtextio.c | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/cad/magic/patches/patch-utils_LIBtextio.c b/cad/magic/patches/patch-utils_LIBtextio.c new file mode 100644 index 00000000000..4cd9a1d43eb --- /dev/null +++ b/cad/magic/patches/patch-utils_LIBtextio.c @@ -0,0 +1,64 @@ +$NetBSD: patch-utils_LIBtextio.c,v 1.1 2013/03/03 01:11:11 joerg Exp $ + +--- utils/LIBtextio.c.orig 2013-03-02 22:24:58.000000000 +0000 ++++ utils/LIBtextio.c +@@ -94,18 +94,23 @@ TxFlush() + * + * ---------------------------------------------------------------------------- + */ ++void ++VTxError(char *fmt, va_list va) ++{ ++ (void) fflush(stdout); ++ (void) fflush(stderr); ++ vfprintf(stderr, fmt, ap); ++ (void) fflush(stderr); ++} + + void + TxError(char *fmt, ...) + { + va_list ap; + +- (void) fflush(stdout); +- (void) fflush(stderr); + va_start(ap, fmt); +- vfprintf(stderr, fmt, ap); ++ VTxError(fmt, ap); + va_end(ap); +- (void) fflush(stderr); + } + + +$NetBSD: patch-utils_LIBtextio.c,v 1.1 2013/03/03 01:11:11 joerg Exp $ + +--- utils/LIBtextio.c.orig 2013-03-02 22:24:58.000000000 +0000 ++++ utils/LIBtextio.c +@@ -94,18 +94,23 @@ TxFlush() + * + * ---------------------------------------------------------------------------- + */ ++void ++VTxError(char *fmt, va_list va) ++{ ++ (void) fflush(stdout); ++ (void) fflush(stderr); ++ vfprintf(stderr, fmt, ap); ++ (void) fflush(stderr); ++} + + void + TxError(char *fmt, ...) + { + va_list ap; + +- (void) fflush(stdout); +- (void) fflush(stderr); + va_start(ap, fmt); +- vfprintf(stderr, fmt, ap); ++ VTxError(fmt, ap); + va_end(ap); +- (void) fflush(stderr); + } + + |