From d179a27457c959dbe93b44c3803609138610472d Mon Sep 17 00:00:00 2001
From: Eric Andersen <andersen@codepoet.org>
Date: Fri, 5 Apr 2002 23:32:54 +0000
Subject: Add a fun pointer to make apps happy

---
 libc/misc/error/error.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/libc/misc/error/error.c b/libc/misc/error/error.c
index 25ea5075c..ed1d91070 100644
--- a/libc/misc/error/error.c
+++ b/libc/misc/error/error.c
@@ -33,7 +33,11 @@
 unsigned int error_message_count;
 /* Sometimes we want to have at most one error per line.  This
    variable controls whether this mode is selected or not.  */
-static int error_one_per_line;
+int error_one_per_line;
+/* If NULL, error will flush stdout, then print on stderr the program
+   name, a colon and a space.  Otherwise, error will call this
+   function without parameters instead.  */
+void (*error_print_progname) (void) = NULL;
 
 
 void __error (int status, int errnum, const char *message, ...)
-- 
cgit v1.2.3