set windows version constants
authorMichael Wallner <mike@php.net>
Sun, 20 Dec 2020 14:24:58 +0000 (15:24 +0100)
committerMichael Wallner <mike@php.net>
Sun, 20 Dec 2020 14:24:58 +0000 (15:24 +0100)
include/libmemcached-1/platform.h

index c0223392f60b59ad083ec8927a93ae36c5a4fb86..ad345f64d354eaef82bb0d953bae550fcf538127 100644 (file)
@@ -53,15 +53,11 @@ typedef long int ssize_t;
 #endif
 
 #if defined _WIN32
+# define WINVER 0x0600
+# define _WIN32_WINNT 0x0600
 # include <winsock2.h>
 # include <ws2tcpip.h>
 typedef SOCKET memcached_socket_t;
-# if !defined POLLIN
-#  define POLLIN (POLLRDNORM|POLLRDBAND)
-# endif
-# if !defined POLLOUT
-#  define POLLOUT (POLLWRNORM)
-# endif
 #else
 typedef int memcached_socket_t;
 #endif // _WIN32