$NetBSD$

--- Extensions/posix.c.orig	2006-01-11 17:19:54.000000000 +0000
+++ Extensions/posix.c
@@ -23,7 +23,7 @@
  * <shiro@sqush.squareusa.com>
  */
  
-
+#include <errno.h>
 #include <stk.h>
 #include <sys/types.h>
 #include <sys/utsname.h>
@@ -35,7 +35,6 @@
  * Error management
  *
  ******************************************************************************/
-extern int errno;
 
 static SCM get_errno(char *s)
 {
