mirror of https://github.com/ossrs/srs.git
Build: Check __GLIBC__ for OpenHarmony to fix build fail. v6.0.83 (#3777)
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.pull/3810/head
parent
fbb8c16496
commit
5b31225d7c
Loading…
Reference in New Issue