summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-09-03 18:32:05 +0000
committerJim Meyering <jim@meyering.net>2001-09-03 18:32:05 +0000
commitf839ec4d47232626ca51c78a14d735ac3f928cf9 (patch)
treec678f57813cc30a67502f5f9bca4dfbef8af9630 /lib
parent279c73a72596789c1ee0b485863dd2c1ca5ae855 (diff)
downloadcoreutils-f839ec4d47232626ca51c78a14d735ac3f928cf9.tar.xz
include errno.h etc, too
Diffstat (limited to 'lib')
-rw-r--r--lib/xreadlink.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/xreadlink.c b/lib/xreadlink.c
index 3194d318a..8adbb0c19 100644
--- a/lib/xreadlink.c
+++ b/lib/xreadlink.c
@@ -24,6 +24,11 @@
#endif
#include <stdio.h>
+#include <errno.h>
+#ifndef errno
+extern int errno;
+#endif
+
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif