summaryrefslogtreecommitdiff
path: root/win32/time.h
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2003-02-16 03:48:49 +0000
committerWez Furlong <wez@php.net>2003-02-16 03:48:49 +0000
commit0a18a9d744afb9d97d46bad1f40c11a047bad5df (patch)
tree993ffad34c5dc4fb92e92b559e13cc95f2f32145 /win32/time.h
parent5edec2a91005a4c378c56801585c89029926c5b3 (diff)
downloadphp-git-0a18a9d744afb9d97d46bad1f40c11a047bad5df.tar.gz
A add much more useful select(2) implementation than is provided by
windows sockets. The winsock implementation will only work with sockets; our implementation works with sockets and file descriptors. By association, stream_select() will now operate correctly with files, pipes and sockets. This change required linking against the winsock2 library. In terms of compatibility, only older versions of windows 95 do not have winsock2 installed by default. It is available as a redistributable file, and is most likely installed by any OS patches (eg: Internet Explorer) applied by the user. Also, add a win32 compatible pipe test when opening a stream from a pipe. This test will only work on NT, win2k and XP platforms. Without this test, interleaved fread() and select() calls would cause the read buffer to be clobbered. I will be working on a fix for this issue for win9x.
Diffstat (limited to 'win32/time.h')
-rw-r--r--win32/time.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/time.h b/win32/time.h
index f0514ebe59..4d6c8a2bc2 100644
--- a/win32/time.h
+++ b/win32/time.h
@@ -13,7 +13,7 @@
#define TIME_H
/* Include stuff ************************************************************ */
-#include <winsock.h>
+#include <winsock2.h>
#include <time.h>
#include <php.h>