summaryrefslogtreecommitdiff
path: root/lib/error.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-11-11 14:32:00 +0000
committerJim Meyering <jim@meyering.net>2000-11-11 14:32:00 +0000
commitb3f23e14d2cd9e950265d1ecc44a84623d9dc9e6 (patch)
tree0dd4280f8ffc845e47c77884ccb6fc9133892e42 /lib/error.c
parentabe849cb765231c7ba0658fac48b11d71eb9bb4a (diff)
downloadcoreutils-b3f23e14d2cd9e950265d1ecc44a84623d9dc9e6.tar.xz
Add a couple #includes, merging from GNU libc version.
Diffstat (limited to 'lib/error.c')
-rw-r--r--lib/error.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/error.c b/lib/error.c
index 5dbd4d726..c78b6cffb 100644
--- a/lib/error.c
+++ b/lib/error.c
@@ -1,5 +1,5 @@
/* Error handler for noninteractive utilities
- Copyright (C) 1990-2000 Free Software Foundation, Inc.
+ Copyright (C) 1990-1998, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library. Its master source is NOT part of
the C library, however. The master source lives in /gd/gnu/lib.
@@ -26,6 +26,9 @@
#endif
#include <stdio.h>
+#if HAVE_LIBINTL_H
+# include <libintl.h>
+#endif
#if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC
# if __STDC__
@@ -83,6 +86,11 @@ unsigned int error_message_count;
# define error __error
# define error_at_line __error_at_line
+# ifdef USE_IN_LIBIO
+# include <libio/iolibio.h>
+# define fflush(s) _IO_fflush (s)
+# endif
+
#else /* not _LIBC */
/* The calling program should define program_name and set it to the