mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 22:11: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")
|
#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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue