Apply Randrianasulu's fix to thread.cpp, fixes building in Termux, closes #4753.
This commit is contained in:
@@ -5,12 +5,16 @@
|
|||||||
#include <86box/plat.h>
|
#include <86box/plat.h>
|
||||||
#include <86box/thread.h>
|
#include <86box/thread.h>
|
||||||
|
|
||||||
|
#if !defined(__unix__)
|
||||||
|
|
||||||
struct event_cpp11_t {
|
struct event_cpp11_t {
|
||||||
std::condition_variable cond;
|
std::condition_variable cond;
|
||||||
std::mutex mutex;
|
std::mutex mutex;
|
||||||
bool state = false;
|
bool state = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
||||||
thread_t *
|
thread_t *
|
||||||
|
Reference in New Issue
Block a user