]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Merge in changes from libc.
authorJim Meyering <jim@meyering.net>
Thu, 28 Nov 2002 09:09:29 +0000 (09:09 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 28 Nov 2002 09:09:29 +0000 (09:09 +0000)
[_LIBC]: Include <libio/libioP.h>.
[USE_IN_LIBIO]: Include <libio/iolibio.h>
(fflush): Tweak definition to use INTUSE.
(putc): Define.

lib/error.c

index dc694c03b601d2ffc3d20e425fc738b702f151cb..3161538e1f0c4e89b22cc6eb64611f2c79c4ba62 100644 (file)
@@ -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 */