mirror of https://github.com/PCSX2/pcsx2.git
DEV9: net.cpp use __POSIX__ to check for pthread support
This commit is contained in:
parent
2a921b40af
commit
3442ba7483
|
@ -17,7 +17,7 @@
|
|||
|
||||
#include <chrono>
|
||||
#include <thread>
|
||||
#if defined(__unix__) || defined(__APPLE__)
|
||||
#if defined(__POSIX__)
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
#include "net.h"
|
||||
|
@ -57,7 +57,7 @@ void InitNet(NetAdapter* ad)
|
|||
|
||||
#ifdef _WIN32
|
||||
SetThreadPriority(rx_thread.native_handle(), THREAD_PRIORITY_HIGHEST);
|
||||
#elif defined(__unix__) || defined(__APPLE__)
|
||||
#elif defined(__POSIX__)
|
||||
pthread_attr_t thAttr;
|
||||
int policy = 0;
|
||||
int max_prio_for_policy = 0;
|
||||
|
|
Loading…
Reference in New Issue