summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2019-07-24 18:26:49 -0700
committerJuan A. Suarez Romero <jasuarez@igalia.com>2019-10-16 15:26:21 +0000
commit2fd001f21ea8539365ef00bc16853676c0bef352 (patch)
treedfc63fefa83190132196d3e73c67a2e78c785824
parent13120904e463868e4a6eb51644c5e3a1a2c732e4 (diff)
downloadmesa-2fd001f21ea8539365ef00bc16853676c0bef352.tar.gz
util: Drop preprocessor guards for glibc-2.12
glibc-2.12 was released in 2010. No one is building new Mesa against 9 year old glibc, and removing these checks allows the code to work on other C libraries like musl. Acked-by: Eric Engestrom <eric.engestrom@intel.com> (cherry picked from commit 9c411e020d164563fb6fcd92a28a435277bf0745)
-rw-r--r--src/util/u_thread.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/util/u_thread.h b/src/util/u_thread.h
index a46c18d3db2..8c8cc803199 100644
--- a/src/util/u_thread.h
+++ b/src/util/u_thread.h
@@ -61,11 +61,7 @@ static inline thrd_t u_thread_create(int (*routine)(void *), void *param)
static inline void u_thread_setname( const char *name )
{
#if defined(HAVE_PTHREAD)
-# if defined(__GNU_LIBRARY__) && defined(__GLIBC__) && defined(__GLIBC_MINOR__) && \
- (__GLIBC__ >= 3 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 12)) && \
- defined(__linux__)
pthread_setname_np(pthread_self(), name);
-# endif
#endif
(void)name;
}
@@ -150,10 +146,7 @@ u_thread_get_time_nano(thrd_t thread)
static inline bool u_thread_is_self(thrd_t thread)
{
#if defined(HAVE_PTHREAD)
-# if defined(__GNU_LIBRARY__) && defined(__GLIBC__) && defined(__GLIBC_MINOR__) && \
- (__GLIBC__ >= 3 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 12))
return pthread_equal(pthread_self(), thread);
-# endif
#endif
return false;
}