From: foobar Date: Tue, 4 Jan 2005 10:35:56 +0000 (+0000) Subject: - Fix bug #31403 (php_hostconnect not defined as PHPAPI) X-Git-Tag: php-4.3.11RC1~198 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fc34db9f96cd8ae2043a50b6b5d006b673988cfc;p=php - Fix bug #31403 (php_hostconnect not defined as PHPAPI) --- diff --git a/main/network.c b/main/network.c index 5448d289dd..a95c23887a 100644 --- a/main/network.c +++ b/main/network.c @@ -430,7 +430,7 @@ PHPAPI int php_connect_nonb_win32(SOCKET sockfd, * port, returns the created socket on success, else returns -1. * timeout gives timeout in seconds, 0 means blocking mode. */ -int php_hostconnect(const char *host, unsigned short port, int socktype, struct timeval *timeout TSRMLS_DC) +PHPAPI int php_hostconnect(const char *host, unsigned short port, int socktype, struct timeval *timeout TSRMLS_DC) { int n, repeatto, s; struct sockaddr **sal, **psal; diff --git a/main/php_network.h b/main/php_network.h index 5ca34f1308..5f3bb47311 100644 --- a/main/php_network.h +++ b/main/php_network.h @@ -109,7 +109,7 @@ typedef struct { #endif -int php_hostconnect(const char *host, unsigned short port, int socktype, struct timeval *timeout TSRMLS_DC); +PHPAPI int php_hostconnect(const char *host, unsigned short port, int socktype, struct timeval *timeout TSRMLS_DC); PHPAPI int php_connect_nonb(int sockfd, const struct sockaddr *addr, socklen_t addrlen, struct timeval *timeout); #ifdef PHP_WIN32