SHA256
3
0
forked from pool/tcpd
tcpd/tcp_wrappers_7.6-prototypes.diff

92 lines
2.0 KiB
Diff
Raw Normal View History

--- clean_exit.c.orig
+++ clean_exit.c
@@ -13,6 +13,8 @@ static char sccsid[] = "@(#) clean_exit.
#endif
#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
extern void exit();
--- hosts_access.c.orig
+++ hosts_access.c
@@ -31,6 +31,8 @@ static char sccsid[] = "@(#) hosts_acces
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
+#include <unistd.h>
+#include <netdb.h>
#include <syslog.h>
#include <ctype.h>
#include <errno.h>
--- inetcf.c.orig
+++ inetcf.c
@@ -88,7 +88,7 @@ char *conf;
} else {
for (i = 0; inet_files[i] && (fp = fopen(inet_files[i], "r")) == 0; i++)
/* void */ ;
- if (fp == 0) {
+ if (!fp) {
fprintf(stderr, "Cannot find your inetd.conf or tlid.conf file.\n");
fprintf(stderr, "Please specify its location.\n");
exit(1);
--- ip6utils.c.orig
+++ ip6utils.c
@@ -2,6 +2,7 @@
#include <sys/socket.h>
#include <arpa/inet.h>
#include <stdio.h>
+#include <string.h>
#include <errno.h>
#include "ip6utils.h"
--- options.c.orig
+++ options.c
@@ -41,6 +41,8 @@ static char sccsid[] = "@(#) options.c 1
#include <netinet/in.h>
#include <netdb.h>
#include <stdio.h>
+#include <unistd.h>
+#include <stdlib.h>
#include <syslog.h>
#include <pwd.h>
#include <grp.h>
--- percent_x.c.orig
+++ percent_x.c
@@ -18,6 +18,8 @@ static char sccsid[] = "@(#) percent_x.c
#include <stdio.h>
#include <syslog.h>
+#include <stdlib.h>
+#include <unistd.h>
#include <string.h>
extern void exit();
--- shell_cmd.c.orig
+++ shell_cmd.c
@@ -15,9 +15,13 @@ static char sccsid[] = "@(#) shell_cmd.c
/* System libraries. */
#include <sys/types.h>
+#include <sys/wait.h>
#include <sys/param.h>
#include <signal.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <fcntl.h>
+#include <unistd.h>
#include <syslog.h>
#include <string.h>
--- update.c.orig
+++ update.c
@@ -21,6 +21,7 @@ static char sccsid[] = "@(#) update.c 1.
#include <stdio.h>
#include <syslog.h>
+#include <unistd.h>
#include <string.h>
/* Local stuff. */