You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#if LOGURU_PTHREADS
#include<pthread.h>
#if defined(__FreeBSD__)
#include<pthread_np.h>
#include<sys/thr.h>
#elif defined(__OpenBSD__)
#include<pthread_np.h>
#endif
#ifdef __linux__
/* On Linux, the default thread name is the same as the name of the binary. Additionally, all new threads inherit the name of the thread it got forked from. For this reason, Loguru use the pthread Thread Local Storage for storing thread names on Linux. */
#ifndef LOGURU_PTLS_NAMES
#defineLOGURU_PTLS_NAMES1
#endif
#endif
#endif
The text was updated successfully, but these errors were encountered:
Building from source on Android Studio for Linux fails on version 1.16.0 due to missing include for Linux on
thirdparty/loguru.cpp
Error message: use of undeclared identifier 'pthread_getname_np'
It is fixed by using the missing include (it's there on version 1.15.2 sources).
So change this:
To this:
The text was updated successfully, but these errors were encountered: