diff --git a/src/compat.h b/src/compat.h index 0be02cae03e..5fa65897921 100644 --- a/src/compat.h +++ b/src/compat.h @@ -18,11 +18,7 @@ #undef FD_SETSIZE // prevent redefinition compiler warning #endif #define FD_SETSIZE 1024 // max number of fds in fd_set - -#include // Must be included before mswsock.h and windows.h - -#include -#include +#include #include #include #else diff --git a/src/httpserver.cpp b/src/httpserver.cpp index 1e5ea2de832..0a8e58ab674 100644 --- a/src/httpserver.cpp +++ b/src/httpserver.cpp @@ -33,13 +33,6 @@ #include -#ifdef EVENT__HAVE_NETINET_IN_H -#include -#ifdef _XOPEN_SOURCE_EXTENDED -#include -#endif -#endif - /** Maximum size of http request (request line + headers) */ static const size_t MAX_HEADERS_SIZE = 8192; diff --git a/src/net.h b/src/net.h index fe7b72c9205..21ee5e78088 100644 --- a/src/net.h +++ b/src/net.h @@ -33,11 +33,6 @@ #include #include -#ifndef WIN32 -#include -#endif - - class CScheduler; class CNode; class BanMan; diff --git a/src/torcontrol.cpp b/src/torcontrol.cpp index 8ebe3d750d7..9d91f42b1b4 100644 --- a/src/torcontrol.cpp +++ b/src/torcontrol.cpp @@ -7,6 +7,7 @@ #include #include +#include #include #include #include