summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank M. Kromann <fmk@php.net>2000-08-19 21:15:43 +0000
committerFrank M. Kromann <fmk@php.net>2000-08-19 21:15:43 +0000
commit61df257c0f5c6f04ae6eefb9baa16574a1afd08f (patch)
tree226fc2bed8325b1203741ab4404856da73b20697
parent705e6f2ec6445634b5d547d63b054f8de7f0cd8e (diff)
downloadphp-git-61df257c0f5c6f04ae6eefb9baa16574a1afd08f.tar.gz
We only need winsock.h one time
-rw-r--r--ext/standard/file.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c
index 47dd9445a9..f1b66dd78d 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -44,6 +44,9 @@
#else
#include <sys/param.h>
#include <sys/socket.h>
+#include <netinet/in.h>
+#include <netdb.h>
+#include <arpa/inet.h>
#endif
#include "ext/standard/head.h"
#include "safe_mode.h"
@@ -59,13 +62,6 @@
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
-#ifdef PHP_WIN32
-#include <winsock.h>
-#else
-#include <netinet/in.h>
-#include <netdb.h>
-#include <arpa/inet.h>
-#endif
#include "fsock.h"
#include "fopen-wrappers.h"
#include "php_globals.h"