You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

102 lines
3.3 KiB

# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../tcp_wrappers/errno-fix.patch
# Copyright (C) 2004 - 2006 The T2 SDE Project
# Copyright (C) 1998 - 2003 Clifford Wolf
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
diff -urN tcp_wrappers_7.6-orig/hosts_access.c tcp_wrappers_7.6/hosts_access.c
--- tcp_wrappers_7.6-orig/hosts_access.c 1997-02-12 02:13:23.000000000 +0100
+++ tcp_wrappers_7.6/hosts_access.c 2003-03-05 16:07:28.000000000 +0100
@@ -35,7 +35,7 @@
#include <string.h>
extern char *fgets();
-extern int errno;
+/*extern int errno;*/
#ifndef INADDR_NONE
#define INADDR_NONE (-1) /* XXX should be 0xffffffff */
diff -urN tcp_wrappers_7.6-orig/inetcf.c tcp_wrappers_7.6/inetcf.c
--- tcp_wrappers_7.6-orig/inetcf.c 1997-02-12 02:13:24.000000000 +0100
+++ tcp_wrappers_7.6/inetcf.c 2003-03-05 16:07:41.000000000 +0100
@@ -15,7 +15,7 @@
#include <errno.h>
#include <string.h>
-extern int errno;
+/*extern int errno;*/
extern void exit();
#include "tcpd.h"
diff -urN tcp_wrappers_7.6-orig/percent_m.c tcp_wrappers_7.6/percent_m.c
--- tcp_wrappers_7.6-orig/percent_m.c 1994-12-28 17:42:37.000000000 +0100
+++ tcp_wrappers_7.6/percent_m.c 2003-03-05 16:07:58.000000000 +0100
@@ -12,7 +12,7 @@
#include <errno.h>
#include <string.h>
-extern int errno;
+/*extern int errno;*/
#ifndef SYS_ERRLIST_DEFINED
extern char *sys_errlist[];
extern int sys_nerr;
diff -urN tcp_wrappers_7.6-orig/tcpdchk.c tcp_wrappers_7.6/tcpdchk.c
--- tcp_wrappers_7.6-orig/tcpdchk.c 1997-02-12 02:13:25.000000000 +0100
+++ tcp_wrappers_7.6/tcpdchk.c 2003-03-05 16:08:14.000000000 +0100
@@ -31,7 +31,7 @@
#include <netdb.h>
#include <string.h>
-extern int errno;
+/*extern int errno;*/
extern void exit();
extern int optind;
extern char *optarg;
diff -urN tcp_wrappers_7.6-orig/tli-sequent.c tcp_wrappers_7.6/tli-sequent.c
--- tcp_wrappers_7.6-orig/tli-sequent.c 1994-12-28 17:42:51.000000000 +0100
+++ tcp_wrappers_7.6/tli-sequent.c 2003-03-05 16:08:32.000000000 +0100
@@ -30,7 +30,7 @@
#include <errno.h>
#include <string.h>
-extern int errno;
+/*extern int errno;*/
extern char *sys_errlist[];
extern int sys_nerr;
extern int t_errno;
diff -urN tcp_wrappers_7.6-orig/tli.c tcp_wrappers_7.6/tli.c
--- tcp_wrappers_7.6-orig/tli.c 1997-03-21 19:27:26.000000000 +0100
+++ tcp_wrappers_7.6/tli.c 2003-03-05 16:08:45.000000000 +0100
@@ -39,7 +39,7 @@
#include <string.h>
extern char *nc_sperror();
-extern int errno;
+/*extern int errno;*/
extern char *sys_errlist[];
extern int sys_nerr;
extern int t_errno;
diff -urN tcp_wrappers_7.6-orig/workarounds.c tcp_wrappers_7.6/workarounds.c
--- tcp_wrappers_7.6-orig/workarounds.c 1996-03-19 16:22:26.000000000 +0100
+++ tcp_wrappers_7.6/workarounds.c 2003-03-05 16:08:59.000000000 +0100
@@ -22,7 +22,7 @@
#include <syslog.h>
#include <string.h>
-extern int errno;
+/*extern int errno;*/
#include "tcpd.h"