diff options
Diffstat (limited to 'main/php_network.h')
-rw-r--r-- | main/php_network.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/main/php_network.h b/main/php_network.h index cf2851d914..eaacbc8450 100644 --- a/main/php_network.h +++ b/main/php_network.h @@ -20,7 +20,27 @@ #ifndef _PHP_NETWORK_H #define _PHP_NETWORK_H +#ifdef PHP_WIN32 +# ifndef WINNT +# define WINNT 1 +# endif +# undef FD_SETSIZE +# include "arpa/inet.h" +# define socklen_t unsigned int +#endif + +#ifdef HAVE_NETINET_IN_H +# include <netinet/in.h> +#endif + +#ifdef HAVE_SYS_SOCKET_H +#include <sys/socket.h> +#endif + + + int php_hostconnect(char *host, unsigned short port, int socktype, int timeout); +PHPAPI int php_connect_nonb(int sockfd, struct sockaddr *addr, socklen_t addrlen, struct timeval *timeout); #endif /* _PHP_NETWORK_H */ |