small portability enhancements
authorewt <devnull@localhost>
Wed, 25 Sep 1996 19:11:14 +0000 (19:11 +0000)
committerewt <devnull@localhost>
Wed, 25 Sep 1996 19:11:14 +0000 (19:11 +0000)
CVS patchset: 1042
CVS date: 1996/09/25 19:11:14

ftp.c

diff --git a/ftp.c b/ftp.c
index 54d9e2f..6fc4d1c 100644 (file)
--- a/ftp.c
+++ b/ftp.c
@@ -1,6 +1,17 @@
+#ifdef HAVE_MACHINE_TYPES_H
+# include <machine/types.h>
+#endif
+
+#ifdef HAVE_ALLOCA_H
+# include <alloca.h>
+#endif
+
+#ifdef HAVE_NETINET_IN_SYSTM_H
+# include <netinet/in_systm.h>
+#endif
+
 #include <netinet/in.h>
 #include <netinet/ip.h>
-#include <alloca.h>
 #include <arpa/inet.h>
 #include <ctype.h>
 #include <errno.h>
@@ -11,6 +22,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sys/socket.h>
 #include <sys/time.h>
 #include <sys/types.h>
 #include <unistd.h>
 #define TIMEOUT_SECS 60
 #define BUFFER_SIZE 4096
 
+#ifndef IPPORT_FTP
+# define IPPORT_FTP 21
+#endif
+
 #include "ftp.h"
 
 static int ftpCheckResponse(int sock, char ** str);