diff options
| author | Matthew Parlane <parlane@gmail.com> | 2016-07-18 16:12:06 +1200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-07-18 16:12:06 +1200 |
| commit | a51c992e6168fa7e10e2ada6168d7f1b38aad961 (patch) | |
| tree | f0e73c953491c9e4aea18d9a2aa3ff679c2cf31f /Source/Core/Common/Thread.cpp | |
| parent | 7139b6bae6301f667a9ebff2ec7f7dc1820bbf2c (diff) | |
| parent | cdf62dece39634367e9608db635c4f84c7a3b88c (diff) | |
Merge pull request #4018 from bentley/openbsd-ifdefs
Openbsd ifdefs
Diffstat (limited to 'Source/Core/Common/Thread.cpp')
| -rw-r--r-- | Source/Core/Common/Thread.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/Thread.cpp b/Source/Core/Common/Thread.cpp index 557cbfbef2..a03b9c2e57 100644 --- a/Source/Core/Common/Thread.cpp +++ b/Source/Core/Common/Thread.cpp @@ -12,7 +12,7 @@ #ifdef __APPLE__ #include <mach/mach.h> -#elif defined BSD4_4 || defined __FreeBSD__ +#elif defined BSD4_4 || defined __FreeBSD__ || defined __OpenBSD__ #include <pthread_np.h> #endif @@ -132,7 +132,7 @@ void SetCurrentThreadName(const char* szThreadName) { #ifdef __APPLE__ pthread_setname_np(szThreadName); -#elif defined __FreeBSD__ +#elif defined __FreeBSD__ || defined __OpenBSD__ pthread_set_name_np(pthread_self(), szThreadName); #else // linux doesn't allow to set more than 16 bytes, including \0. |
