--- /dev/null
+--- camserv-0.5.1/camserv/camserv.c.orig Sun May 12 20:05:55 2002
++++ camserv-0.5.1/camserv/camserv.c Wed Jul 9 10:54:46 2003
+@@ -19,6 +19,7 @@
+
+ #include "camserv_config.h"
+
++#include <errno.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -153,7 +154,6 @@
+ CamConfig *camcfg;
+ char *shm_segment, tmpbuf[ 1024 ], cfg_path[ MAXPATHLEN ];
+ int fd, shm_alloc, donecfg;
+- extern int errno;
+
+ donecfg = 0;
+ if (argc >= 2) {
+--- camserv-0.5.1/camserv/main_loop.c.orig Mon Sep 16 00:05:23 2002
++++ camserv-0.5.1/camserv/main_loop.c Wed Jul 9 10:55:11 2003
+@@ -1,3 +1,4 @@
++#include <errno.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -14,8 +15,6 @@
+ #include "list.h"
+ #include "log.h"
+
+-extern int errno;
+-
+ static int Abort = 0;
+
+ #define CINFO_STATE_PREAMBLE 0
+--- camserv-0.5.1/camserv/picture_loop.c.orig Mon Mar 11 01:51:44 2002
++++ camserv-0.5.1/camserv/picture_loop.c Wed Jul 9 10:55:30 2003
+@@ -1,3 +1,4 @@
++#include <errno.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -244,7 +245,6 @@
+ {
+ Filter *filters;
+ Video_Funcs vfuncs;
+- extern int errno;
+ void *vid_device = NULL;
+ char *pic_snap = NULL, vidsec[ 1024 ];
+ Video_Geometry geom;
+--- camserv-0.5.1/relay/relay.c.orig Mon Sep 16 00:13:16 2002
++++ camserv-0.5.1/relay/relay.c Wed Jul 9 11:07:20 2003
+@@ -18,6 +18,7 @@
+ */
+
+ #include "camserv_config.h"
++#include <errno.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -34,8 +35,6 @@
+
+ #define BACKLOG 20
+
+-extern int errno;
+-
+ #define CLIENT_T_UNK 0
+ #define CLIENT_T_CAMSERV 1
+ #define CLIENT_T_BROWSER 2