diff --git a/src/main.c b/src/main.c
index fcf08190de87e79c1891e27c34e9683d7f14eadc..125772fdce39eaa28e877def39d699a7fbef98c1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -4,7 +4,7 @@
 ||| See the files COPYING and DISCLAIMER for more information.
 \*/
 #include "global.h"
-RCSID("$Id: main.c,v 1.25 1997/11/01 23:05:29 grubba Exp $");
+RCSID("$Id: main.c,v 1.26 1997/11/02 17:19:50 grubba Exp $");
 #include "backend.h"
 #include "module.h"
 #include "object.h"
@@ -23,6 +23,8 @@ RCSID("$Id: main.c,v 1.25 1997/11/01 23:05:29 grubba Exp $");
 #include "gc.h"
 #include "mapping.h"
 
+#include <errno.h>
+
 #ifdef HAVE_LOCALE_H
 #include <locale.h>
 #endif