From 80a6bcc58b6d6a4595e465290b67168d45fc6fa3 Mon Sep 17 00:00:00 2001 From: Michael Rebello Date: Tue, 14 Jul 2020 13:38:08 -0700 Subject: [PATCH] android: update SUPPORTS_PTHREAD_GETNAME_NP conditional This API was introduced in 26, so we should include that version as well. Signed-off-by: Michael Rebello --- include/envoy/common/platform.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/envoy/common/platform.h b/include/envoy/common/platform.h index c3398829f8abf..efc1a81d84f09 100644 --- a/include/envoy/common/platform.h +++ b/include/envoy/common/platform.h @@ -253,11 +253,11 @@ struct mmsghdr { #endif // https://android.googlesource.com/platform/bionic/+/master/docs/status.md -// ``pthread_getname_np`` is introduced in API 26 +// ``pthread_getname_np`` was introduced in API 26 #ifdef __ANDROID_API__ -#if __ANDROID_API__ > 26 +#if __ANDROID_API__ >= 26 #define SUPPORTS_PTHREAD_GETNAME_NP 1 -#endif // __ANDROID_API__ > 26 +#endif // __ANDROID_API__ >= 26 #endif // ifdef __ANDROID_API__ // Ensure `SUPPORTS_PTHREAD_GETNAME_NP` is set