diff options
Diffstat (limited to 'main/network.c')
| -rw-r--r-- | main/network.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/main/network.c b/main/network.c index 76f6bdc4a6..781fb76c99 100644 --- a/main/network.c +++ b/main/network.c @@ -37,8 +37,12 @@ #include <netinet/in.h> #include <netdb.h> #include <arpa/inet.h> +#else +int inet_aton(const char *, struct in_addr *); #endif +#include "php_network.h" + #ifdef PHP_WIN32 #undef AF_UNIX #endif @@ -150,7 +154,7 @@ static int php_network_getaddresses(const char *host, struct sockaddr ***sal) * port, returns the created socket on success, else returns -1. * timeout gives timeout in seconds, 0 means blocking mode. */ -int php_hostconnect(char *host, int port, int socktype, int timeout) +int php_hostconnect(char *host, unsigned short port, int socktype, int timeout) { int s; struct sockaddr **sal, **psal; |
