fix macos

This commit is contained in:
MihailRis 2026-07-29 20:24:27 +03:00
parent 513abd332c
commit 340aac82c3

View file

@ -18,12 +18,14 @@
#pragma comment(lib, "winmm.lib") #pragma comment(lib, "winmm.lib")
#else #else
#include <sys/poll.h> #include <sys/poll.h>
#include <sys/prctl.h>
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>
#include <signal.h> #include <signal.h>
#include <stdio.h> #include <stdio.h>
#endif #endif
#ifdef __linux__
#include <sys/prctl.h>
#endif
namespace platform::internal { namespace platform::internal {
std::filesystem::path get_executable_path(); std::filesystem::path get_executable_path();
@ -333,6 +335,8 @@ void platform::new_engine_instance(
} }
#else #else
// TODO: implement
#ifndef __APPLE__
if (subProcess) { if (subProcess) {
pid_t pid = fork(); pid_t pid = fork();
@ -365,6 +369,7 @@ void platform::new_engine_instance(
close(fd); close(fd);
} }
} }
#endif // __APPLE_
std::stringstream ss; std::stringstream ss;
ss << executable; ss << executable;