]> granicus.if.org Git - php/commitdiff
Fixed win32 build problem.
authorWez Furlong <wez@php.net>
Sun, 6 May 2001 09:39:11 +0000 (09:39 +0000)
committerWez Furlong <wez@php.net>
Sun, 6 May 2001 09:39:11 +0000 (09:39 +0000)
ext/standard/fsock.h

index 6d35af9674e419cbae3e01fcea18ff3cdc40629b..9f369a8b27594151f1374348313aa9c52489dcfd 100644 (file)
 
 #include "file.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
-
-#ifdef HAVE_SYS_TIME_H
-#include <sys/time.h>
-#endif
-
 #define PHP_FSOCK_CHUNK_SIZE 8192
 
+#include "php_network.h"
+
 #if HAVE_PHP_STREAM
 extern php_stream_ops php_stream_socket_ops;
 #endif