Use <winsock2.h> instead of legacy <winsock.h> (#19037)

This also omits defining unused HAVE_WINSOCK_H macro when building
ext/sockets.
This commit is contained in:
Peter Kokot 2025-07-07 09:40:03 +02:00 committed by GitHub
parent aa366b5113
commit c2af281c0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -26,7 +26,7 @@
#ifndef PHP_WIN32
#include <netinet/tcp.h>
#else
#include <winsock.h>
#include <winsock2.h>
#endif