summaryrefslogtreecommitdiff
path: root/ext/sockets/php_sockets_win.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sockets/php_sockets_win.c')
-rw-r--r--ext/sockets/php_sockets_win.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/ext/sockets/php_sockets_win.c b/ext/sockets/php_sockets_win.c
index 7463fba055..3bf274d620 100644
--- a/ext/sockets/php_sockets_win.c
+++ b/ext/sockets/php_sockets_win.c
@@ -81,29 +81,4 @@ int inet_aton(const char *cp, struct in_addr *inp) {
return 1;
}
-
-int fcntl(int fd, int cmd, ...) {
- va_list va;
- int retval, io, mode;
-
- va_start(va, cmd);
-
- switch(cmd) {
- case F_GETFL:
- case F_SETFD:
- case F_GETFD:
- default:
- retval = -1;
- break;
-
- case F_SETFL:
- io = va_arg(va, int);
- mode = io == O_NONBLOCK ? 1 : 0;
- retval = ioctlsocket(fd, io, &mode);
- break;
- }
-
- va_end(va);
- return retval;
-}
#endif