summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/unexec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unexec.c b/src/unexec.c
index 7dac7323ff3..fb00c27e54b 100644
--- a/src/unexec.c
+++ b/src/unexec.c
@@ -1067,7 +1067,9 @@ write_segment (new, ptr, end)
{
register int i, nwrite, ret;
char buf[80];
+#ifndef USE_CRT_DLL
extern int errno;
+#endif
/* This is the normal amount to write at once.
It is the size of block that NFS uses. */
int writesize = 1 << 13;