$NetBSD: patch-ac,v 1.1 2005/12/18 22:12:12 joerg Exp $

--- lib/io/io.c.orig	2005-12-18 22:04:17.000000000 +0000
+++ lib/io/io.c
@@ -8,6 +8,7 @@
  */
 
 
+#include <errno.h>
 #include <mrt.h>
 #ifndef NT
 #include <sys/ipc.h>
@@ -610,7 +611,6 @@ get_destq (char *client)
     int server_qid;
     int need_rm = 1;
     ARB_MSG_Struct msg;
-    extern int errno;
 
     /* Get a mailbox endpoint to receive the message from the server.
        Try to create one first; if it already exists, assume we made it
