From bb0452442a77570fce529cbb3d9fd99a94f3b50e Mon Sep 17 00:00:00 2001 From: Chih-Wei Huang Date: Sun, 4 Jun 2017 12:53:01 +0800 Subject: Android: use bionic pthread_barrier_* if possible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The pthread_barrier_* functions were introduced to bionic since Nougat. Signed-off-by: Chih-Wei Huang Acked-by: Tapani Pälli Acked-by: Emil Velikov --- src/gallium/auxiliary/os/os_thread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/auxiliary/os') diff --git a/src/gallium/auxiliary/os/os_thread.h b/src/gallium/auxiliary/os/os_thread.h index b6e0698da61..0a238e57493 100644 --- a/src/gallium/auxiliary/os/os_thread.h +++ b/src/gallium/auxiliary/os/os_thread.h @@ -75,7 +75,7 @@ __pipe_mutex_assert_locked(mtx_t *mutex) * pipe_barrier */ -#if (defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD) || defined(PIPE_OS_SOLARIS) || defined(PIPE_OS_HURD)) && !defined(PIPE_OS_ANDROID) +#if (defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD) || defined(PIPE_OS_SOLARIS) || defined(PIPE_OS_HURD)) && (!defined(PIPE_OS_ANDROID) || ANDROID_API_LEVEL >= 24) typedef pthread_barrier_t pipe_barrier; -- cgit v1.2.3