Dash:
[t2-trunk.git] / package / network / tcp_wrappers / errno-fix.patch
blob0d0cd54277e412fc725b63ff2d78e4274a869960
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../tcp_wrappers/errno-fix.patch
5 # Copyright (C) 2004 - 2005 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
7 #
8 # More information can be found in the files COPYING and README.
9 #
10 # This patch file is dual-licensed. It is available under the license the
11 # patched project is licensed under, as long as it is an OpenSource license
12 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
13 # of the GNU General Public License as published by the Free Software
14 # Foundation; either version 2 of the License, or (at your option) any later
15 # version.
16 # --- T2-COPYRIGHT-NOTE-END ---
18 diff -urN tcp_wrappers_7.6-orig/hosts_access.c tcp_wrappers_7.6/hosts_access.c
19 --- tcp_wrappers_7.6-orig/hosts_access.c 1997-02-12 02:13:23.000000000 +0100
20 +++ tcp_wrappers_7.6/hosts_access.c 2003-03-05 16:07:28.000000000 +0100
21 @@ -35,7 +35,7 @@
22 #include <string.h>
24 extern char *fgets();
25 -extern int errno;
26 +/*extern int errno;*/
28 #ifndef INADDR_NONE
29 #define INADDR_NONE (-1) /* XXX should be 0xffffffff */
30 diff -urN tcp_wrappers_7.6-orig/inetcf.c tcp_wrappers_7.6/inetcf.c
31 --- tcp_wrappers_7.6-orig/inetcf.c 1997-02-12 02:13:24.000000000 +0100
32 +++ tcp_wrappers_7.6/inetcf.c 2003-03-05 16:07:41.000000000 +0100
33 @@ -15,7 +15,7 @@
34 #include <errno.h>
35 #include <string.h>
37 -extern int errno;
38 +/*extern int errno;*/
39 extern void exit();
41 #include "tcpd.h"
42 diff -urN tcp_wrappers_7.6-orig/percent_m.c tcp_wrappers_7.6/percent_m.c
43 --- tcp_wrappers_7.6-orig/percent_m.c 1994-12-28 17:42:37.000000000 +0100
44 +++ tcp_wrappers_7.6/percent_m.c 2003-03-05 16:07:58.000000000 +0100
45 @@ -12,7 +12,7 @@
46 #include <errno.h>
47 #include <string.h>
49 -extern int errno;
50 +/*extern int errno;*/
51 #ifndef SYS_ERRLIST_DEFINED
52 extern char *sys_errlist[];
53 extern int sys_nerr;
54 diff -urN tcp_wrappers_7.6-orig/tcpdchk.c tcp_wrappers_7.6/tcpdchk.c
55 --- tcp_wrappers_7.6-orig/tcpdchk.c 1997-02-12 02:13:25.000000000 +0100
56 +++ tcp_wrappers_7.6/tcpdchk.c 2003-03-05 16:08:14.000000000 +0100
57 @@ -31,7 +31,7 @@
58 #include <netdb.h>
59 #include <string.h>
61 -extern int errno;
62 +/*extern int errno;*/
63 extern void exit();
64 extern int optind;
65 extern char *optarg;
66 diff -urN tcp_wrappers_7.6-orig/tli-sequent.c tcp_wrappers_7.6/tli-sequent.c
67 --- tcp_wrappers_7.6-orig/tli-sequent.c 1994-12-28 17:42:51.000000000 +0100
68 +++ tcp_wrappers_7.6/tli-sequent.c 2003-03-05 16:08:32.000000000 +0100
69 @@ -30,7 +30,7 @@
70 #include <errno.h>
71 #include <string.h>
73 -extern int errno;
74 +/*extern int errno;*/
75 extern char *sys_errlist[];
76 extern int sys_nerr;
77 extern int t_errno;
78 diff -urN tcp_wrappers_7.6-orig/tli.c tcp_wrappers_7.6/tli.c
79 --- tcp_wrappers_7.6-orig/tli.c 1997-03-21 19:27:26.000000000 +0100
80 +++ tcp_wrappers_7.6/tli.c 2003-03-05 16:08:45.000000000 +0100
81 @@ -39,7 +39,7 @@
82 #include <string.h>
84 extern char *nc_sperror();
85 -extern int errno;
86 +/*extern int errno;*/
87 extern char *sys_errlist[];
88 extern int sys_nerr;
89 extern int t_errno;
90 diff -urN tcp_wrappers_7.6-orig/workarounds.c tcp_wrappers_7.6/workarounds.c
91 --- tcp_wrappers_7.6-orig/workarounds.c 1996-03-19 16:22:26.000000000 +0100
92 +++ tcp_wrappers_7.6/workarounds.c 2003-03-05 16:08:59.000000000 +0100
93 @@ -22,7 +22,7 @@
94 #include <syslog.h>
95 #include <string.h>
97 -extern int errno;
98 +/*extern int errno;*/
100 #include "tcpd.h"