diff --git a/src/interpret.c b/src/interpret.c
index 7b70d411a8720801de48f4837375873a76949bfa..74b85e3b5bffe4e04ae241eb110d150f1fd9aaf2 100644
--- a/src/interpret.c
+++ b/src/interpret.c
@@ -4,7 +4,7 @@
 ||| See the files COPYING and DISCLAIMER for more information.
 \*/
 #include "global.h"
-RCSID("$Id: interpret.c,v 1.10 1996/11/18 23:12:31 hubbe Exp $");
+RCSID("$Id: interpret.c,v 1.11 1996/11/19 09:35:22 hubbe Exp $");
 #include "interpret.h"
 #include "object.h"
 #include "program.h"
@@ -29,6 +29,7 @@ RCSID("$Id: interpret.c,v 1.10 1996/11/18 23:12:31 hubbe Exp $");
 #include "callback.h"
 
 #include <fcntl.h>
+#include <errno.h>
 
 #ifdef HAVE_MMAP
 #ifdef HAVE_SYS_TYPES_H
diff --git a/src/modules/spider/sharedmem.c b/src/modules/spider/sharedmem.c
index 2184b9baf59cf6646327c161f20d8ca3c3337565..ff34bbf63916604c7afa80598aebf71febc0b053 100644
--- a/src/modules/spider/sharedmem.c
+++ b/src/modules/spider/sharedmem.c
@@ -1,5 +1,6 @@
 #include "global.h"
 #include <sys/types.h>
+#include <errno.h>
 
 #ifdef HAVE_THREAD_H
 # include <thread.h>
diff --git a/src/program.c b/src/program.c
index a55a05ced28a049969d25889dd66812759bd645b..7d509775dadd724eb9cae4c696bd80bcd7d3d73c 100644
--- a/src/program.c
+++ b/src/program.c
@@ -4,7 +4,7 @@
 ||| See the files COPYING and DISCLAIMER for more information.
 \*/
 #include "global.h"
-RCSID("$Id: program.c,v 1.8 1996/11/18 23:12:32 hubbe Exp $");
+RCSID("$Id: program.c,v 1.9 1996/11/19 09:35:24 hubbe Exp $");
 #include "program.h"
 #include "object.h"
 #include "dynamic_buffer.h"
@@ -22,7 +22,8 @@ RCSID("$Id: program.c,v 1.8 1996/11/18 23:12:32 hubbe Exp $");
 #include "main.h"
 #include "gc.h"
 #include "threads.h"
-#include <stdio.h>
+
+#include <errno.h>
 #include <fcntl.h>
 
 #define FILE_STATE