summaryrefslogtreecommitdiff
path: root/ext/ftp/ftp.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ftp/ftp.h')
-rw-r--r--ext/ftp/ftp.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/ftp/ftp.h b/ext/ftp/ftp.h
index 9546e53c44..416c36df83 100644
--- a/ext/ftp/ftp.h
+++ b/ext/ftp/ftp.h
@@ -22,6 +22,8 @@
#ifndef FTP_H
#define FTP_H
+#include "php_network.h"
+
#include <stdio.h>
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
@@ -40,7 +42,7 @@ typedef enum ftptype {
typedef struct ftpbuf
{
int fd; /* control connection */
- struct in_addr localaddr; /* local inet address */
+ php_sockaddr_storage localaddr; /* local address */
int resp; /* last response code */
char inbuf[FTP_BUFSIZE]; /* last response text */
char *extra; /* extra characters */
@@ -50,7 +52,7 @@ typedef struct ftpbuf
char *syst; /* cached system type */
ftptype_t type; /* current transfer type */
int pasv; /* 0=off; 1=pasv; 2=ready */
- struct sockaddr_in pasvaddr; /* passive mode address */
+ php_sockaddr_storage pasvaddr; /* passive mode address */
long timeout_sec; /* User configureable timeout (seconds) */
} ftpbuf_t;