-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
fbb8c16
commit 5b31225
Showing
3 changed files
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,6 @@ | |
|
||
#define VERSION_MAJOR 6 | ||
#define VERSION_MINOR 0 | ||
#define VERSION_REVISION 82 | ||
#define VERSION_REVISION 83 | ||
|
||
#endif |