refactor: don't avoid sys/types.h on when building for Windows

We've already used it unguarded in `httpserver.cpp` for years, with no
build issues.
This commit is contained in:
fanquake
2023-01-24 12:18:08 +00:00
parent 369d4c03b7
commit 54e4061189
4 changed files with 13 additions and 12 deletions

View File

@@ -24,11 +24,12 @@
#include <thread>
#include <vector>
#include <sys/types.h> // must go before a number of other headers
#ifdef WIN32
#include <windows.h>
#include <winreg.h>
#else
#include <sys/types.h> // must go before a number of other headers
#include <fcntl.h>
#include <netinet/in.h>
#include <sys/resource.h>