All: OpenBSD build fixes

This commit is contained in:
Jeffrey Pfau 2015-07-28 09:04:28 -07:00
parent 54bff2a1ca
commit 2b80e3573f
2 changed files with 3 additions and 3 deletions
src/platform

View File

@ -79,7 +79,7 @@ static inline int ThreadJoin(Thread thread) {
static inline int ThreadSetName(const char* name) { static inline int ThreadSetName(const char* name) {
#ifdef __APPLE__ #ifdef __APPLE__
return pthread_setname_np(name); return pthread_setname_np(name);
#elif defined(__FreeBSD__) #elif defined(__FreeBSD__) || defined(__OpenBSD__)
pthread_set_name_np(pthread_self(), name); pthread_set_name_np(pthread_self(), name);
return 0; return 0;
#else #else

View File

@ -40,8 +40,8 @@ extern "C" {
using namespace QGBA; using namespace QGBA;
#ifdef __WIN32 #if defined(__WIN32) || defined(__OpenBSD__)
// This is a macro everywhere except MinGW, it seems // This is a macro everywhere except MinGW and OpenBSD, it seems
using std::isnan; using std::isnan;
#endif #endif