mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix macos
This commit is contained in:
parent
513abd332c
commit
340aac82c3
1 changed files with 6 additions and 1 deletions
|
|
@ -18,12 +18,14 @@
|
|||
#pragma comment(lib, "winmm.lib")
|
||||
#else
|
||||
#include <sys/poll.h>
|
||||
#include <sys/prctl.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
#endif
|
||||
#ifdef __linux__
|
||||
#include <sys/prctl.h>
|
||||
#endif
|
||||
|
||||
namespace platform::internal {
|
||||
std::filesystem::path get_executable_path();
|
||||
|
|
@ -333,6 +335,8 @@ void platform::new_engine_instance(
|
|||
}
|
||||
#else
|
||||
|
||||
// TODO: implement
|
||||
#ifndef __APPLE__
|
||||
if (subProcess) {
|
||||
pid_t pid = fork();
|
||||
|
||||
|
|
@ -365,6 +369,7 @@ void platform::new_engine_instance(
|
|||
close(fd);
|
||||
}
|
||||
}
|
||||
#endif // __APPLE_
|
||||
|
||||
std::stringstream ss;
|
||||
ss << executable;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue