From fc34db9f96cd8ae2043a50b6b5d006b673988cfc Mon Sep 17 00:00:00 2001 From: foobar Date: Tue, 4 Jan 2005 10:35:56 +0000 Subject: [PATCH] - Fix bug #31403 (php_hostconnect not defined as PHPAPI) --- main/network.c | 2 +- main/php_network.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.50.1