From bf033aa5a8d210615fcef0e5fdb0f6ac4bd5a258 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 6 Dec 2003 16:12:10 +0000 Subject: Fix ftp build when openssl is built as a shared extension. --- ext/ftp/php_ftp.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ext/ftp/php_ftp.c') diff --git a/ext/ftp/php_ftp.c b/ext/ftp/php_ftp.c index 21a0cf52a5..a88bea31c8 100644 --- a/ext/ftp/php_ftp.c +++ b/ext/ftp/php_ftp.c @@ -35,8 +35,8 @@ #endif #endif -#ifdef HAVE_OPENSSL_EXT -#include +#if HAVE_OPENSSL_EXT +# include #endif #if HAVE_FTP @@ -59,7 +59,7 @@ static function_entry php_ftp_functions[] = { PHP_FE(ftp_connect, NULL) -#ifdef HAVE_OPENSSL_EXT +#if HAVE_OPENSSL_EXT PHP_FE(ftp_ssl_connect, NULL) #endif PHP_FE(ftp_login, NULL) @@ -110,7 +110,7 @@ zend_module_entry php_ftp_module_entry = { STANDARD_MODULE_PROPERTIES }; -#ifdef COMPILE_DL_FTP +#if COMPILE_DL_FTP ZEND_GET_MODULE(php_ftp) #endif @@ -179,7 +179,7 @@ PHP_FUNCTION(ftp_connect) /* autoseek for resuming */ ftp->autoseek = FTP_DEFAULT_AUTOSEEK; -#ifdef HAVE_OPENSSL_EXT +#if HAVE_OPENSSL_EXT /* disable ssl */ ftp->use_ssl = 0; #endif @@ -188,7 +188,7 @@ PHP_FUNCTION(ftp_connect) } /* }}} */ -#ifdef HAVE_OPENSSL_EXT +#if HAVE_OPENSSL_EXT /* {{{ proto resource ftp_ssl_connect(string host [, int port [, int timeout]]) Opens a FTP-SSL stream */ PHP_FUNCTION(ftp_ssl_connect) -- cgit v1.2.1