File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 21
21
22
22
#include "php.h"
23
23
24
- #if HAVE_FTP
24
+ #ifdef HAVE_FTP
25
25
26
26
#include <stdio.h>
27
27
#include <ctype.h>
45
45
#endif
46
46
#include <errno.h>
47
47
48
- #if HAVE_SYS_TIME_H
48
+ #ifdef HAVE_SYS_TIME_H
49
49
#include <sys/time.h>
50
50
#endif
51
51
@@ -816,7 +816,7 @@ ftp_pasv(ftpbuf_t *ftp, int pasv)
816
816
return 0 ;
817
817
}
818
818
819
- #if HAVE_IPV6
819
+ #ifdef HAVE_IPV6
820
820
if (sa -> sa_family == AF_INET6 ) {
821
821
struct sockaddr_in6 * sin6 = (struct sockaddr_in6 * ) sa ;
822
822
char * endptr , delimiter ;
@@ -1719,7 +1719,7 @@ ftp_getdata(ftpbuf_t *ftp)
1719
1719
1720
1720
data -> listener = fd ;
1721
1721
1722
- #if HAVE_IPV6 && HAVE_INET_NTOP
1722
+ #if defined( HAVE_IPV6 ) && defined( HAVE_INET_NTOP )
1723
1723
if (sa -> sa_family == AF_INET6 ) {
1724
1724
/* need to use EPRT */
1725
1725
char eprtarg [INET6_ADDRSTRLEN + sizeof ("|x||xxxxx|" )];
Original file line number Diff line number Diff line change 25
25
# include <openssl/ssl.h>
26
26
#endif
27
27
28
- #if HAVE_FTP
28
+ #ifdef HAVE_FTP
29
29
30
30
#include "ext/standard/info.h"
31
31
#include "ext/standard/file.h"
@@ -52,7 +52,7 @@ zend_module_entry php_ftp_module_entry = {
52
52
STANDARD_MODULE_PROPERTIES
53
53
};
54
54
55
- #if COMPILE_DL_FTP
55
+ #ifdef COMPILE_DL_FTP
56
56
ZEND_GET_MODULE (php_ftp )
57
57
#endif
58
58
Original file line number Diff line number Diff line change 18
18
#ifndef _INCLUDED_FTP_H
19
19
#define _INCLUDED_FTP_H
20
20
21
- #if HAVE_FTP
21
+ #ifdef HAVE_FTP
22
22
23
23
extern zend_module_entry php_ftp_module_entry ;
24
24
#define php_ftp_module_ptr &php_ftp_module_entry
You can’t perform that action at this time.
0 commit comments