diff options
author | Jim Meyering <jim@meyering.net> | 2002-11-28 09:09:29 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-11-28 09:09:29 +0000 |
commit | d604ec99371cb6a969d44df5b4afa3ed62fd693e (patch) | |
tree | 50357f52ebd95555d5ef443a5a1c5ac5117cb14a | |
parent | e1938a7929de415a4d7f3245b145519e69ae3cfd (diff) | |
download | coreutils-d604ec99371cb6a969d44df5b4afa3ed62fd693e.tar.xz |
Merge in changes from libc.
[_LIBC]: Include <libio/libioP.h>.
[USE_IN_LIBIO]: Include <libio/iolibio.h>
(fflush): Tweak definition to use INTUSE.
(putc): Define.
-rw-r--r-- | lib/error.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/error.c b/lib/error.c index dc694c03b..3161538e1 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 <errno.h> +# include <libio/libioP.h> /* 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 <libio/iolibio.h> -# 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 */ |