--- agent-discover.c.old	Sat Apr 12 23:19:00 2003
+++ agent-discover.c	Sat Apr 12 23:19:16 2003
@@ -38,6 +38,7 @@
 #include <sys/socket.h>
 #include <glib.h>
 #include <string.h>
+#include <errno.h>
 #include "event.h"
 #include "io.h"
 #include "sched.h"
@@ -81,7 +82,6 @@
 static struct ping_q *pingQ = NULL;
 static int ping_socket = -1;
 int ping_retries = 1;
-extern int errno;
 
 typedef struct _map_link_t {
 	u32 address;
