When I compile on OpenHarmony, I encounter an error at the pthread_setname_np function:
./src/app/srs_app_threads.cpp:53:10: error: functions that differ only in their return type cannot be overloaded
void pthread_setname_np(pthread_t trd, const char* name) {
/data/local/ohos-sdk/linux/native/llvm/bin/../../sysroot/usr/include/pthread.h:379:5: note: previous declaration is here
int pthread_setname_np(pthread_t, const char *);
Our libc is using musl-libc and has no defined GLIBC, so we wanted to add a judgment that GLIBC already defined.
When I compile on OpenHarmony, I encounter an error at the pthread_setname_np function:
Our libc is using musl-libc and has no defined GLIBC, so we wanted to add a judgment that GLIBC already defined.
TRANS_BY_GPT4