DEV9: net.cpp use __POSIX__ to check for pthread support

This commit is contained in:
TheLastRar 2020-11-04 22:13:12 +00:00 committed by refractionpcsx2
parent 2a921b40af
commit 3442ba7483
1 changed files with 2 additions and 2 deletions

View File

@ -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;