Add missing headers (#15075)

Some systems must explicitly include these headers.
This commit is contained in:
pastalian 2024-01-25 01:22:37 +09:00 committed by GitHub
parent 3ef48cbdd5
commit e8ad6ec673
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 2 additions and 2 deletions

View file

@ -27,10 +27,8 @@
#include <sys/un.h>
#include <arpa/inet.h>
#include <poll.h>
#if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
#include <unistd.h>
#endif
#endif
#ifdef _WIN32
constexpr SOCKET invalid_socket = INVALID_SOCKET;