From e8ad6ec673a039ce7e6fb0377bedab33e0d569a4 Mon Sep 17 00:00:00 2001 From: pastalian <28638872+pastalian@users.noreply.github.com> Date: Thu, 25 Jan 2024 01:22:37 +0900 Subject: [PATCH] Add missing headers (#15075) Some systems must explicitly include these headers. --- 3rdparty/pine/pine_server.h | 2 -- Utilities/JITASM.cpp | 1 + Utilities/Thread.cpp | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/3rdparty/pine/pine_server.h b/3rdparty/pine/pine_server.h index d3cb323cbd..44f2ab7087 100644 --- a/3rdparty/pine/pine_server.h +++ b/3rdparty/pine/pine_server.h @@ -27,10 +27,8 @@ #include #include #include -#if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__) #include #endif -#endif #ifdef _WIN32 constexpr SOCKET invalid_socket = INVALID_SOCKET; diff --git a/Utilities/JITASM.cpp b/Utilities/JITASM.cpp index 2eef415ca9..593add58f0 100644 --- a/Utilities/JITASM.cpp +++ b/Utilities/JITASM.cpp @@ -10,6 +10,7 @@ #include "util/simd.hpp" #ifdef __linux__ +#include #define CAN_OVERCOMMIT #endif diff --git a/Utilities/Thread.cpp b/Utilities/Thread.cpp index a81117e2d0..8e536c0541 100644 --- a/Utilities/Thread.cpp +++ b/Utilities/Thread.cpp @@ -46,6 +46,7 @@ DYNAMIC_IMPORT_RENAME("Kernel32.dll", SetThreadDescriptionImport, "SetThreadDesc #include #endif #ifdef __linux__ +#include #include #include #endif