aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sh/tmpfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sh/tmpfile.c')
-rw-r--r--lib/sh/tmpfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sh/tmpfile.c b/lib/sh/tmpfile.c
index c06ad65..99ed5ca 100644
--- a/lib/sh/tmpfile.c
+++ b/lib/sh/tmpfile.c
@@ -39,7 +39,7 @@
#include <shell.h>
#ifndef errno
-extern int errno;
+#include <errno.h>
#endif
#define BASEOPENFLAGS (O_CREAT | O_TRUNC | O_EXCL | O_BINARY)