commit a0541fdbeb08247b8c97f2f01e922452ffb4bc9e Author: Erik Zeek Date: Mon Jul 21 20:21:07 2025 -0600 Use boost/process/v1 for newer boosts Signed-off-by: Erik Zeek diff --git a/LspCpp/examples/StdIOClientExample.cpp b/LspCpp/examples/StdIOClientExample.cpp index 13bf9da..48a9ace 100644 --- a/LspCpp/examples/StdIOClientExample.cpp +++ b/LspCpp/examples/StdIOClientExample.cpp @@ -17,7 +17,17 @@ #include "LibLsp/JsonRpc/TcpServer.h" #include "LibLsp/lsp/textDocument/document_symbol.h" #include "LibLsp/lsp/workspace/execute_command.h" + +#include +#if BOOST_VERSION >= 108800 // v2 is now default +#define BOOST_PROCESS_VERSION 1 +#include +#include +#include +#else #include +#endif + #include #include #include diff --git a/LspCpp/examples/StdIOServerExample.cpp b/LspCpp/examples/StdIOServerExample.cpp index 8b2d2b2..f38e4a7 100644 --- a/LspCpp/examples/StdIOServerExample.cpp +++ b/LspCpp/examples/StdIOServerExample.cpp @@ -16,7 +16,17 @@ #include "LibLsp/JsonRpc/TcpServer.h" #include "LibLsp/lsp/textDocument/document_symbol.h" #include "LibLsp/lsp/workspace/execute_command.h" + +#include +#if BOOST_VERSION >= 108800 // v2 is now default +#define BOOST_PROCESS_VERSION 1 +#include +#include +#include +#else #include +#endif + #include #include #include diff --git a/LspCpp/src/lsp/ParentProcessWatcher.cpp b/LspCpp/src/lsp/ParentProcessWatcher.cpp index ee4147b..8ecc05d 100644 --- a/LspCpp/src/lsp/ParentProcessWatcher.cpp +++ b/LspCpp/src/lsp/ParentProcessWatcher.cpp @@ -1,6 +1,17 @@ #include "LibLsp/lsp/ParentProcessWatcher.h" #include + +#include +#if BOOST_VERSION >= 108800 // v2 is now default +#define BOOST_PROCESS_VERSION 1 +#include +#include +#include +#include +#else #include +#error "V1" +#endif #ifdef _WIN32 #include