summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/glob.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/misc/glob.c b/misc/glob.c
index 7ee40d2ea..ec60d110b 100644
--- a/misc/glob.c
+++ b/misc/glob.c
@@ -36,6 +36,14 @@
# define REAL_DIR_ENTRY(dp) (dp->d_ino != 0)
#endif /* POSIX */
+#include <errno.h>
+#ifndef errno
+extern int errno;
+#endif
+#ifndef __set_errno
+# define __set_errno(val) errno = (val)
+#endif
+
/* Outcomment the following line for production quality code. */
/* #define NDEBUG 1 */