From d604ec99371cb6a969d44df5b4afa3ed62fd693e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 28 Nov 2002 09:09:29 +0000 Subject: [PATCH] Merge in changes from libc. [_LIBC]: Include . [USE_IN_LIBIO]: Include (fflush): Tweak definition to use INTUSE. (putc): Define. --- lib/error.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/error.c b/lib/error.c index dc694c03b6..3161538e1f 100644 --- a/lib/error.c +++ b/lib/error.c @@ -78,6 +78,7 @@ unsigned int error_message_count; # define program_name program_invocation_name # include +# include /* In GNU libc we want do not want to use the common name `error' directly. Instead make it a weak alias. */ @@ -92,7 +93,9 @@ extern void __error_at_line (int status, int errnum, const char *file_name, # ifdef USE_IN_LIBIO # include -# define fflush(s) _IO_fflush (s) +# define fflush(s) INTUSE(_IO_fflush) (s) +# undef putc +# define putc(c, fp) INTUSE(_IO_putc) (c, fp) # endif #else /* not _LIBC */ -- 2.47.2