diff -ur camserv/camserv.c camserv-0.5.1-gentoo/camserv/camserv.c --- camserv/camserv.c 2003-09-21 13:05:37.000000000 +1200 +++ camserv-0.5.1-gentoo/camserv/camserv.c 2003-09-21 13:21:19.000000000 +1200 @@ -25,6 +25,7 @@ #include #include #include +#include #include "camconfig.h" #include "camshm.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) { diff -ur camserv/main_loop.c camserv-0.5.1-gentoo/camserv/main_loop.c --- camserv/main_loop.c 2003-09-21 13:05:37.000000000 +1200 +++ camserv-0.5.1-gentoo/camserv/main_loop.c 2003-09-21 13:22:25.000000000 +1200 @@ -3,6 +3,7 @@ #include #include #include +#include #include "camserv.h" #include "camconfig.h" @@ -14,8 +15,6 @@ #include "list.h" #include "log.h" -extern int errno; - static int Abort = 0; #define CINFO_STATE_PREAMBLE 0 diff -ur camserv/picture_loop.c camserv-0.5.1-gentoo/camserv/picture_loop.c --- camserv/picture_loop.c 2003-09-21 13:05:37.000000000 +1200 +++ camserv-0.5.1-gentoo/camserv/picture_loop.c 2003-09-21 13:25:33.000000000 +1200 @@ -4,6 +4,7 @@ #include #include #include +#include #include "camserv.h" #include "camconfig.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; diff -ur camserv/video_fbsd_bttv.c camserv-0.5.1-gentoo/camserv/video_fbsd_bttv.c --- camserv/video_fbsd_bttv.c 2003-09-21 13:05:37.000000000 +1200 +++ camserv-0.5.1-gentoo/camserv/video_fbsd_bttv.c 2003-09-21 13:38:59.000000000 +1200 @@ -32,13 +32,12 @@ #include #include #include +#include #include "video.h" #include "log.h" #include "grafxmisc.h" -extern int errno; - typedef struct fbttv_st { char section_name[ 1024 ]; /* Section name of the given device module */ int initialized; /* 1 if it has been initialzed, else 0 */ diff -ur common/sock_field.c camserv-0.5.1-gentoo/common/sock_field.c --- common/sock_field.c 2003-09-21 13:05:36.000000000 +1200 +++ camserv-0.5.1-gentoo/common/sock_field.c 2003-09-21 13:39:59.000000000 +1200 @@ -209,7 +209,6 @@ SockField_TimeoutFunc timeout_func, struct timeval *timeout ) { - extern int errno; SockField_Data sfdata; int i; struct timeval real_timeout; diff -ur relay/relay.c camserv-0.5.1-gentoo/relay/relay.c --- relay/relay.c 2003-09-21 13:05:36.000000000 +1200 +++ camserv-0.5.1-gentoo/relay/relay.c 2003-09-21 13:27:11.000000000 +1200 @@ -22,6 +22,7 @@ #include #include #include +#include #include "databuf.h" #include "socket.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