tcpd/tcp_wrappers_7.6-implicit-decl.patch

76 lines
2.0 KiB
Diff
Raw Normal View History

Index: rfc931.c
===================================================================
--- rfc931.c.orig 2009-10-30 20:14:38.000000000 +0100
+++ rfc931.c 2009-10-30 20:17:34.000000000 +0100
@@ -23,7 +23,7 @@ static char sccsid[] = "@(#) rfc931.c 1.
#include <setjmp.h>
#include <signal.h>
#include <string.h>
-
+#include <unistd.h>
/* Local stuff. */
#include "tcpd.h"
Index: safe_finger.c
===================================================================
--- safe_finger.c.orig 2009-10-30 20:14:36.000000000 +0100
+++ safe_finger.c 2009-10-30 20:32:39.000000000 +0100
@@ -19,13 +19,16 @@ static char sccsid[] = "@(#) safe_finger
#endif
/* System libraries */
-
+#include <stdlib.h>
+#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/wait.h>
#include <signal.h>
#include <stdio.h>
#include <ctype.h>
#include <pwd.h>
+#include <fcntl.h>
extern void exit();
Index: tcpdchk.c
===================================================================
--- tcpdchk.c.orig 2009-10-30 20:14:36.000000000 +0100
+++ tcpdchk.c 2009-10-30 20:28:19.000000000 +0100
@@ -20,6 +20,7 @@ static char sccsid[] = "@(#) tcpdchk.c 1
/* System libraries. */
+#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef INET6
@@ -33,6 +34,7 @@ static char sccsid[] = "@(#) tcpdchk.c 1
#include <errno.h>
#include <netdb.h>
#include <string.h>
+#include <unistd.h>
extern int errno;
extern void exit();
Index: tcpdmatch.c
===================================================================
--- tcpdmatch.c.orig 2009-10-30 20:14:36.000000000 +0100
+++ tcpdmatch.c 2009-10-30 20:29:17.000000000 +0100
@@ -19,6 +19,7 @@ static char sccsid[] = "@(#) tcpdmatch.c
/* System libraries. */
+#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
@@ -29,6 +30,7 @@ static char sccsid[] = "@(#) tcpdmatch.c
#include <syslog.h>
#include <setjmp.h>
#include <string.h>
+#include <unistd.h>
extern void exit();
extern int optind;