diff --git a/src/os/unix/unix.cpp b/src/os/unix/unix.cpp index 0f53fb1727..10914e32c8 100644 --- a/src/os/unix/unix.cpp +++ b/src/os/unix/unix.cpp @@ -337,8 +337,10 @@ int GetCurrentThreadName(char *str, const char *last) return 0; } +#if !defined(NO_THREADS) static pthread_t main_thread; static pthread_t game_thread; +#endif void SetSelfAsMainThread() {