OpenSDE Packages Database (without history before r20070)
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.

101 lines
3.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../tcp_wrappers/errno-fix.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2003 Clifford Wolf
  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. # --- SDE-COPYRIGHT-NOTE-END ---
  17. diff -urN tcp_wrappers_7.6-orig/hosts_access.c tcp_wrappers_7.6/hosts_access.c
  18. --- tcp_wrappers_7.6-orig/hosts_access.c 1997-02-12 02:13:23.000000000 +0100
  19. +++ tcp_wrappers_7.6/hosts_access.c 2003-03-05 16:07:28.000000000 +0100
  20. @@ -35,7 +35,7 @@
  21. #include <string.h>
  22. extern char *fgets();
  23. -extern int errno;
  24. +/*extern int errno;*/
  25. #ifndef INADDR_NONE
  26. #define INADDR_NONE (-1) /* XXX should be 0xffffffff */
  27. diff -urN tcp_wrappers_7.6-orig/inetcf.c tcp_wrappers_7.6/inetcf.c
  28. --- tcp_wrappers_7.6-orig/inetcf.c 1997-02-12 02:13:24.000000000 +0100
  29. +++ tcp_wrappers_7.6/inetcf.c 2003-03-05 16:07:41.000000000 +0100
  30. @@ -15,7 +15,7 @@
  31. #include <errno.h>
  32. #include <string.h>
  33. -extern int errno;
  34. +/*extern int errno;*/
  35. extern void exit();
  36. #include "tcpd.h"
  37. diff -urN tcp_wrappers_7.6-orig/percent_m.c tcp_wrappers_7.6/percent_m.c
  38. --- tcp_wrappers_7.6-orig/percent_m.c 1994-12-28 17:42:37.000000000 +0100
  39. +++ tcp_wrappers_7.6/percent_m.c 2003-03-05 16:07:58.000000000 +0100
  40. @@ -12,7 +12,7 @@
  41. #include <errno.h>
  42. #include <string.h>
  43. -extern int errno;
  44. +/*extern int errno;*/
  45. #ifndef SYS_ERRLIST_DEFINED
  46. extern char *sys_errlist[];
  47. extern int sys_nerr;
  48. diff -urN tcp_wrappers_7.6-orig/tcpdchk.c tcp_wrappers_7.6/tcpdchk.c
  49. --- tcp_wrappers_7.6-orig/tcpdchk.c 1997-02-12 02:13:25.000000000 +0100
  50. +++ tcp_wrappers_7.6/tcpdchk.c 2003-03-05 16:08:14.000000000 +0100
  51. @@ -31,7 +31,7 @@
  52. #include <netdb.h>
  53. #include <string.h>
  54. -extern int errno;
  55. +/*extern int errno;*/
  56. extern void exit();
  57. extern int optind;
  58. extern char *optarg;
  59. diff -urN tcp_wrappers_7.6-orig/tli-sequent.c tcp_wrappers_7.6/tli-sequent.c
  60. --- tcp_wrappers_7.6-orig/tli-sequent.c 1994-12-28 17:42:51.000000000 +0100
  61. +++ tcp_wrappers_7.6/tli-sequent.c 2003-03-05 16:08:32.000000000 +0100
  62. @@ -30,7 +30,7 @@
  63. #include <errno.h>
  64. #include <string.h>
  65. -extern int errno;
  66. +/*extern int errno;*/
  67. extern char *sys_errlist[];
  68. extern int sys_nerr;
  69. extern int t_errno;
  70. diff -urN tcp_wrappers_7.6-orig/tli.c tcp_wrappers_7.6/tli.c
  71. --- tcp_wrappers_7.6-orig/tli.c 1997-03-21 19:27:26.000000000 +0100
  72. +++ tcp_wrappers_7.6/tli.c 2003-03-05 16:08:45.000000000 +0100
  73. @@ -39,7 +39,7 @@
  74. #include <string.h>
  75. extern char *nc_sperror();
  76. -extern int errno;
  77. +/*extern int errno;*/
  78. extern char *sys_errlist[];
  79. extern int sys_nerr;
  80. extern int t_errno;
  81. diff -urN tcp_wrappers_7.6-orig/workarounds.c tcp_wrappers_7.6/workarounds.c
  82. --- tcp_wrappers_7.6-orig/workarounds.c 1996-03-19 16:22:26.000000000 +0100
  83. +++ tcp_wrappers_7.6/workarounds.c 2003-03-05 16:08:59.000000000 +0100
  84. @@ -22,7 +22,7 @@
  85. #include <syslog.h>
  86. #include <string.h>
  87. -extern int errno;
  88. +/*extern int errno;*/
  89. #include "tcpd.h"