arjitkumar / rpms / ftp

Forked from rpms/ftp 5 years ago
Clone

Blame SOURCES/netkit-ftp-0.17-remove-nested-include.patch

09d58c
--- netkit-ftp-0.17/ftp/ftp.c	2012-07-20 07:55:48.545151322 +0200
09d58c
+++ netkit-ftp-0.17-new/ftp/ftp.c	2012-07-20 08:05:07.941468914 +0200
09d58c
@@ -74,6 +74,7 @@ char ftp_rcsid[] =
09d58c
 #include <sys/socket.h>
09d58c
 #include <sys/time.h>
09d58c
 #include <sys/file.h>
09d58c
+#include <sys/poll.h>
09d58c
 
09d58c
 #include <netinet/in.h>
09d58c
 #include <netinet/ip.h>
09d58c
@@ -820,7 +821,6 @@ sendrequest(const char *cmd, char *local
09d58c
 	/* It can be later removed.                              */
09d58c
 	if (old_code_l == 150 && code == 150 && cpend == 1
09d58c
 	    && sunique == 1 && cin !=  NULL && fileno (cin) >=  0 ) {
09d58c
-		#include <sys/poll.h>
09d58c
 		struct pollfd  fds_events_l [2] ;
09d58c
 		int rc;
09d58c