From: Jim Meyering Date: Thu, 28 Nov 2002 09:09:29 +0000 (+0000) Subject: Merge in changes from libc. X-Git-Tag: v4.5.4~133 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d604ec99371cb6a969d44df5b4afa3ed62fd693e;p=thirdparty%2Fcoreutils.git Merge in changes from libc. [_LIBC]: Include . [USE_IN_LIBIO]: Include (fflush): Tweak definition to use INTUSE. (putc): Define. --- 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 */