summaryrefslogtreecommitdiff
path: root/lib/unicodeio.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-03-04 12:35:47 +0000
committerJim Meyering <jim@meyering.net>2000-03-04 12:35:47 +0000
commit28334dafe41b61b51e07b8665119c59dfd50d1cb (patch)
treed455d6d51cbc65fbbf4d4cd30739fb593b49b0e3 /lib/unicodeio.c
parent45758bf1938c8b838a299ff57b933a558d7fca4a (diff)
downloadcoreutils-28334dafe41b61b51e07b8665119c59dfd50d1cb.tar.xz
(<errno.h>): Include it.
(errno): Declare if not defined.
Diffstat (limited to 'lib/unicodeio.c')
-rw-r--r--lib/unicodeio.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/unicodeio.c b/lib/unicodeio.c
index 8e0b2d8f1..676126058 100644
--- a/lib/unicodeio.c
+++ b/lib/unicodeio.c
@@ -29,6 +29,11 @@
#include <stdio.h>
+#include <errno.h>
+#ifndef errno
+extern int errno;
+#endif
+
#if HAVE_ICONV
# include <iconv.h>
/* Name of UCS-4 encoding with machine dependent endianness and alignment. */