From f6c36037edc3f1293f96e84691136c657ca488dc Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Wed, 3 Sep 2025 02:05:30 +0800 Subject: Fix subprocess OSX compile error. --- test/common/platform/unix/UnixFileStreamTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/common/platform/unix') diff --git a/test/common/platform/unix/UnixFileStreamTest.cpp b/test/common/platform/unix/UnixFileStreamTest.cpp index fa99aa29..417fccc2 100644 --- a/test/common/platform/unix/UnixFileStreamTest.cpp +++ b/test/common/platform/unix/UnixFileStreamTest.cpp @@ -13,7 +13,7 @@ TEST_CASE("UnixFileStream Work", "[stream]") { auto temp_file_path = (std::filesystem::temp_directory_path() / "cru_test_temp.XXXXXX") .generic_string(); - mktemp(temp_file_path.data()); + mkstemp(temp_file_path.data()); UnixFileStream file(temp_file_path.c_str(), O_WRONLY | O_CREAT); file.Write("abc", 3); -- cgit v1.2.3