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
|
--- src/commands.c.orig 2003-02-26 21:24:19.000000000 -0500
+++ src/commands.c 2003-02-26 21:24:52.000000000 -0500
@@ -85,7 +85,7 @@
#include <time.h>
-extern int errno;
+#include <errno.h>
extern int running;
extern server_info_t info;
extern mutex_t library_mutex;
--- src/ice_resolv.c.orig 2003-02-26 21:24:26.000000000 -0500
+++ src/ice_resolv.c 2003-02-26 21:25:10.000000000 -0500
@@ -81,7 +81,7 @@
#ifdef _WIN32
extern int running;
#else
-extern int h_errno, errno, running;
+#include <errno.h>
#endif
extern server_info_t info;
--- src/log.c.orig 2003-02-26 21:24:30.000000000 -0500
+++ src/log.c 2003-02-26 21:26:33.000000000 -0500
@@ -72,7 +72,8 @@
#include "authenticate/basic.h"
#include "authenticate/user.h"
-extern int errno, running;
+#include <errno.h>
+extern int running;
extern server_info_t info;
void
--- src/main.c.orig 2003-02-26 21:24:34.000000000 -0500
+++ src/main.c 2003-02-26 21:25:41.000000000 -0500
@@ -97,7 +97,7 @@
#endif
/* We need this for perror and for various sanity checks */
-extern int errno;
+#include <errno.h>
/* Importing a tree and mutex from sock.c */
extern avl_tree *sock_sockets;
--- src/sock.c.orig 2003-02-26 21:24:37.000000000 -0500
+++ src/sock.c 2003-02-26 21:26:53.000000000 -0500
@@ -87,7 +87,8 @@
#define read _read
extern int running;
#else
-extern int h_errno, errno, running;
+#include <errno.h>
+extern int running;
#endif
extern server_info_t info;
extern struct in_addr localaddr;
--- src/timer.c.orig 2003-02-26 21:24:40.000000000 -0500
+++ src/timer.c 2003-02-26 21:27:05.000000000 -0500
@@ -79,7 +79,7 @@
#define MSG_DONTWAIT 0
#endif
-extern int errno;
+#include <errno.h>
extern int running;
extern server_info_t info;
|