]> granicus.if.org Git - php/commitdiff
- Fix bug #31403 (php_hostconnect not defined as PHPAPI)
authorfoobar <sniper@php.net>
Tue, 4 Jan 2005 10:35:56 +0000 (10:35 +0000)
committerfoobar <sniper@php.net>
Tue, 4 Jan 2005 10:35:56 +0000 (10:35 +0000)
main/network.c
main/php_network.h

index 5448d289dd3f3f68c2e58846a879767e1f84a27e..a95c23887aebf09120da5302501b027cdb48b130 100644 (file)
@@ -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;
index 5ca34f13084c3c1520b6f9e5ad91109f20989825..5f3bb473114fa74dd319d65ad74621c1518797ab 100644 (file)
@@ -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