From 2b436127ee52641cdf684483e61ce94b6aa8e080 Mon Sep 17 00:00:00 2001 From: Klemens Morgenstern Date: Wed, 3 Jul 2024 16:36:31 +0800 Subject: [PATCH] added WinSock.h include workarounds. --- src/environment.cpp | 5 +++++ src/error.cpp | 6 ++++++ src/ext/cmd.cpp | 5 +++++ src/ext/cwd.cpp | 5 +++++ src/ext/env.cpp | 5 +++++ src/ext/exe.cpp | 5 +++++ src/ext/proc_info.cpp | 5 +++++ src/shell.cpp | 6 ++++++ src/windows/default_launcher.cpp | 5 +++++ 9 files changed, 47 insertions(+) diff --git a/src/environment.cpp b/src/environment.cpp index 79a37200f..d35e335cc 100644 --- a/src/environment.cpp +++ b/src/environment.cpp @@ -5,6 +5,11 @@ // #include + +#if defined(BOOST_PROCESS_V2_WINDOWS) +#include +#endif + #include #include diff --git a/src/error.cpp b/src/error.cpp index 8e9ffe469..b978c3a42 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -4,6 +4,12 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include + +#if defined(BOOST_PROCESS_V2_WINDOWS) +#include +#endif + + #include #include diff --git a/src/ext/cmd.cpp b/src/ext/cmd.cpp index 14e1c40a0..d74a06ef4 100644 --- a/src/ext/cmd.cpp +++ b/src/ext/cmd.cpp @@ -5,6 +5,11 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include + +#if defined(BOOST_PROCESS_V2_WINDOWS) +#include +#endif + #include #include #include diff --git a/src/ext/cwd.cpp b/src/ext/cwd.cpp index 07d0d4401..b88a4df26 100644 --- a/src/ext/cwd.cpp +++ b/src/ext/cwd.cpp @@ -5,6 +5,11 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include + +#if defined(BOOST_PROCESS_V2_WINDOWS) +#include +#endif + #include #include #include diff --git a/src/ext/env.cpp b/src/ext/env.cpp index 0d14ca079..1a6ebd43d 100644 --- a/src/ext/env.cpp +++ b/src/ext/env.cpp @@ -3,6 +3,11 @@ // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include + +#if defined(BOOST_PROCESS_V2_WINDOWS) +#include +#endif + #include #include #include diff --git a/src/ext/exe.cpp b/src/ext/exe.cpp index cc56bedb1..824826447 100644 --- a/src/ext/exe.cpp +++ b/src/ext/exe.cpp @@ -5,6 +5,11 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include + +#if defined(BOOST_PROCESS_V2_WINDOWS) +#include +#endif + #include #include #include diff --git a/src/ext/proc_info.cpp b/src/ext/proc_info.cpp index 311c9c40b..d4314433f 100644 --- a/src/ext/proc_info.cpp +++ b/src/ext/proc_info.cpp @@ -5,6 +5,11 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include + +#if defined(BOOST_PROCESS_V2_WINDOWS) +#include +#endif + #include #include #include diff --git a/src/shell.cpp b/src/shell.cpp index 1e64c450f..0fffc501a 100644 --- a/src/shell.cpp +++ b/src/shell.cpp @@ -4,6 +4,12 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include + +#if defined(BOOST_PROCESS_V2_WINDOWS) +#include +#endif + + #include #include #include diff --git a/src/windows/default_launcher.cpp b/src/windows/default_launcher.cpp index a584d6b87..3d7e197cb 100644 --- a/src/windows/default_launcher.cpp +++ b/src/windows/default_launcher.cpp @@ -6,6 +6,11 @@ #include +#if defined(BOOST_PROCESS_V2_WINDOWS) +#include +#endif + + #if defined(BOOST_PROCESS_V2_WINDOWS) #include