10_all_more-headers.patch 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. --- tcp_wrappers_7.6/options.c
  2. +++ tcp_wrappers_7.6/options.c
  3. @@ -34,6 +34,8 @@
  4. /* System libraries. */
  5. +#include <unistd.h>
  6. +#include <stdlib.h>
  7. #include <sys/types.h>
  8. #include <sys/param.h>
  9. #include <sys/socket.h>
  10. --- tcp_wrappers_7.6/safe_finger.c
  11. +++ tcp_wrappers_7.6/safe_finger.c
  12. @@ -20,6 +20,10 @@
  13. /* System libraries */
  14. +#include <unistd.h>
  15. +#include <fcntl.h>
  16. +#include <stdlib.h>
  17. +#include <sys/wait.h>
  18. #include <sys/types.h>
  19. #include <sys/stat.h>
  20. #include <signal.h>
  21. @@ -27,7 +31,7 @@
  22. #include <ctype.h>
  23. #include <pwd.h>
  24. -extern void exit();
  25. +int pipe_stdin(char **argv);
  26. /* Local stuff */
  27. --- tcp_wrappers_7.6/scaffold.c
  28. +++ tcp_wrappers_7.6/scaffold.c
  29. @@ -10,6 +10,7 @@
  30. /* System libraries. */
  31. +#include <stdlib.h>
  32. #include <sys/types.h>
  33. #include <sys/stat.h>
  34. #include <sys/socket.h>
  35. --- tcp_wrappers_7.6/shell_cmd.c
  36. +++ tcp_wrappers_7.6/shell_cmd.c
  37. @@ -14,6 +14,10 @@
  38. /* System libraries. */
  39. +#include <unistd.h>
  40. +#include <stdlib.h>
  41. +#include <fcntl.h>
  42. +#include <sys/wait.h>
  43. #include <sys/types.h>
  44. #include <sys/param.h>
  45. #include <signal.h>
  46. @@ -25,8 +25,6 @@
  47. #include <syslog.h>
  48. #include <string.h>
  49. -extern void exit();
  50. -
  51. /* Local stuff. */
  52. #include "tcpd.h"
  53. --- tcp_wrappers_7.6/tcpdchk.c
  54. +++ tcp_wrappers_7.6/tcpdchk.c
  55. @@ -20,6 +20,8 @@
  56. /* System libraries. */
  57. +#include <unistd.h>
  58. +#include <stdlib.h>
  59. #include <sys/types.h>
  60. #include <sys/stat.h>
  61. #ifdef INET6
  62. @@ -35,11 +36,6 @@
  63. #include <netdb.h>
  64. #include <string.h>
  65. -extern int errno;
  66. -extern void exit();
  67. -extern int optind;
  68. -extern char *optarg;
  69. -
  70. #ifndef INADDR_NONE
  71. #define INADDR_NONE (-1) /* XXX should be 0xffffffff */
  72. #endif
  73. --- tcp_wrappers_7.6/clean_exit.c
  74. +++ tcp_wrappers_7.6/clean_exit.c
  75. @@ -13,8 +13,8 @@
  76. #endif
  77. #include <stdio.h>
  78. -
  79. -extern void exit();
  80. +#include <unistd.h>
  81. +#include <stdlib.h>
  82. #include "tcpd.h"
  83. --- tcp_wrappers_7.6/hosts_access.c
  84. +++ tcp_wrappers_7.6/hosts_access.c
  85. @@ -23,6 +23,7 @@
  86. /* System libraries. */
  87. +#include <stdlib.h>
  88. #include <sys/types.h>
  89. #ifdef INT32_T
  90. typedef uint32_t u_int32_t;
  91. @@ -43,8 +44,7 @@
  92. #include <netdb.h>
  93. #endif
  94. -extern char *fgets();
  95. -extern int errno;
  96. +int match_pattern_ylo(const char *s, const char *pattern);
  97. #ifndef INADDR_NONE
  98. #define INADDR_NONE (-1) /* XXX should be 0xffffffff */
  99. --- tcp_wrappers_7.6/inetcf.c
  100. +++ tcp_wrappers_7.6/inetcf.c
  101. @@ -9,15 +9,14 @@
  102. static char sccsid[] = "@(#) inetcf.c 1.7 97/02/12 02:13:23";
  103. #endif
  104. +#include <stdlib.h>
  105. #include <sys/types.h>
  106. #include <sys/stat.h>
  107. #include <stdio.h>
  108. #include <errno.h>
  109. #include <string.h>
  110. -extern int errno;
  111. -extern void exit();
  112. -
  113. +#include "scaffold.h"
  114. #include "tcpd.h"
  115. #include "inetcf.h"
  116. --- tcp_wrappers_7.6/percent_x.c
  117. +++ tcp_wrappers_7.6/percent_x.c
  118. @@ -16,12 +16,12 @@
  119. /* System libraries. */
  120. +#include <unistd.h>
  121. +#include <stdlib.h>
  122. #include <stdio.h>
  123. #include <syslog.h>
  124. #include <string.h>
  125. -extern void exit();
  126. -
  127. /* Local stuff. */
  128. #include "tcpd.h"
  129. --- tcp_wrappers_7.6/rfc931.c
  130. +++ tcp_wrappers_7.6/rfc931.c
  131. @@ -15,6 +15,7 @@
  132. /* System libraries. */
  133. +#include <unistd.h>
  134. #include <stdio.h>
  135. #include <syslog.h>
  136. #include <sys/types.h>
  137. --- tcp_wrappers_7.6/tcpd.c
  138. +++ tcp_wrappers_7.6/tcpd.c
  139. @@ -16,6 +16,7 @@
  140. /* System libraries. */
  141. +#include <unistd.h>
  142. #include <sys/types.h>
  143. #include <sys/param.h>
  144. #include <sys/stat.h>
  145. --- tcp_wrappers_7.6/tcpdmatch.c
  146. +++ tcp_wrappers_7.6/tcpdmatch.c
  147. @@ -19,6 +19,8 @@
  148. /* System libraries. */
  149. +#include <unistd.h>
  150. +#include <stdlib.h>
  151. #include <sys/types.h>
  152. #include <sys/stat.h>
  153. #include <sys/socket.h>
  154. @@ -30,9 +32,6 @@
  155. #include <setjmp.h>
  156. #include <string.h>
  157. -extern void exit();
  158. -extern int optind;
  159. -extern char *optarg;
  160. #ifndef INADDR_NONE
  161. #define INADDR_NONE (-1) /* XXX should be 0xffffffff */
  162. --- tcp_wrappers_7.6/update.c
  163. +++ tcp_wrappers_7.6/update.c
  164. @@ -19,6 +19,7 @@
  165. /* System libraries */
  166. +#include <unistd.h>
  167. #include <stdio.h>
  168. #include <syslog.h>
  169. #include <string.h>