summaryrefslogtreecommitdiff
blob: 130d6bcc2e878a30e8d157fb590c3071f7fe14c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
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 <stdarg.h>
 #include <signal.h>
 #include <sys/param.h>
+#include <errno.h>
 
 #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 <string.h>
 #include <stdarg.h>
 #include <signal.h>
+#include <errno.h>
 
 #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 <dlfcn.h>
 #include <sys/types.h>
 #include <signal.h>
+#include <errno.h>
 
 #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 <signal.h>
 #include <sys/ioctl.h>
 #include <unistd.h>
+#include <errno.h>
 
 #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 <stdlib.h>
 #include <string.h>
 #include <signal.h>
+#include <errno.h>
 
 #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