Files
ack-tegra/tools/testing/selftests/android/include/bionic-compat.h
HONG Yifan 2c1488cabe ANDROID: Add bionic-compat.h to kselftests.
Bionic does not provide pthread_cancel(). Copy bionic-compat.h from
previous fork of kselftests to here to solve the issue.

Link: https://android.googlesource.com/platform/external/linux-kselftest/+/refs/heads/main/android/include/bionic-compat.h
Bug: 369330443
Change-Id: Ifa1b5cbe55d6e8ab007787d94e31902ed8dfc37c
Signed-off-by: HONG Yifan <elsk@google.com>
Signed-off-by: Edward Liaw <edliaw@google.com>
2024-09-26 23:01:08 +00:00

15 lines
235 B
C

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __BIONIC_COMPAT_H
#define __BIONIC_COMPAT_H
#define _GNU_SOURCE
#include <sys/types.h>
static inline int pthread_cancel(pthread_t thread)
{
return 0;
}
#endif /* __BIONIC_COMPAT_H */