Skip to content

Commit

Permalink
Re-hide pthread_getname_np.
Browse files Browse the repository at this point in the history
Bug: android/ndk#2081
Test: vcpkg install --triplet arm64-android liblsl
Change-Id: I92fb25af31294ecedc7ef14e2a6877ef0a7f3e6f
  • Loading branch information
DanAlbert authored and ShelbyHell committed Dec 11, 2024
1 parent dd72660 commit dfd77ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libc/include/pthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,12 @@ int pthread_spin_unlock(pthread_spinlock_t* _Nonnull __spinlock) __INTRODUCED_IN
pthread_t pthread_self(void) __attribute_const__;

#if defined(__USE_GNU)
// This causes issues with autoconf detection in loguru
// https://github.com/android/ndk/issues/2081
#if __ANDROID_API__ >= 26
int pthread_getname_np(pthread_t __pthread, char* _Nonnull __buf, size_t __n) __INTRODUCED_IN(26);
#endif
#endif
/* TODO: this should be __USE_GNU too. */
int pthread_setname_np(pthread_t __pthread, const char* _Nonnull __name);

Expand Down

0 comments on commit dfd77ee

Please sign in to comment.