summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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