Skip to content

Commit af15118

Browse files
raulcdassignUser
authored andcommitted
GH-46159: [CI][C++] Stop using possibly missing boost/process/v2.hpp on boost 1.88 and use individual includes (#46160)
### Rationale for this change Similar to #46113 but for boost v2. The files `v1.hpp` and `v2.hpp` have been removed from `include/boost/process` on `1.88`: https://github.com/boostorg/process/tree/develop/include/boost/process but were available on `1.87`: https://github.com/boostorg/process/blob/boost-1.87.0/include/boost/process/v1.hpp https://github.com/boostorg/process/blob/boost-1.87.0/include/boost/process/v2.hpp ### What changes are included in this PR? Stop using include for possible missing file and add individual includes ### Are these changes tested? Via CI ### Are there any user-facing changes? No * GitHub Issue: #46159 Authored-by: Raúl Cumplido <[email protected]> Signed-off-by: Jacob Wujciak-Jens <[email protected]>
1 parent 7a6eefe commit af15118

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

cpp/src/arrow/testing/process.cc

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,18 @@
3939
# ifdef __APPLE__
4040
# include <sys/sysctl.h>
4141
# endif
42-
# include <boost/process/v2.hpp>
4342
# include <boost/process/v2/src.hpp>
44-
# else
45-
# include <boost/process/v2.hpp>
4643
# endif
44+
# include <boost/process/v2/environment.hpp>
45+
# include <boost/process/v2/error.hpp>
46+
# include <boost/process/v2/execute.hpp>
47+
# include <boost/process/v2/exit_code.hpp>
48+
# include <boost/process/v2/pid.hpp>
49+
# include <boost/process/v2/popen.hpp>
50+
# include <boost/process/v2/process.hpp>
51+
# include <boost/process/v2/process_handle.hpp>
52+
# include <boost/process/v2/start_dir.hpp>
53+
# include <boost/process/v2/stdio.hpp>
4754
# include <unordered_map>
4855
# else
4956
// We need BOOST_USE_WINDOWS_H definition with MinGW when we use

0 commit comments

Comments
 (0)