summaryrefslogtreecommitdiff
path: root/lib/error.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-11-28 09:09:29 +0000
committerJim Meyering <jim@meyering.net>2002-11-28 09:09:29 +0000
commitd604ec99371cb6a969d44df5b4afa3ed62fd693e (patch)
tree50357f52ebd95555d5ef443a5a1c5ac5117cb14a /lib/error.c
parente1938a7929de415a4d7f3245b145519e69ae3cfd (diff)
downloadcoreutils-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.
Diffstat (limited to 'lib/error.c')
-rw-r--r--lib/error.c5
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 */