summaryrefslogtreecommitdiff
path: root/tools/build/feature/test-libbfd-threadsafe.c
blob: fe97f95f6f06b974fa8459ca5b2061507b88b80a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: GPL-2.0
#include <bfd.h>

static bool lock(void *unused)
{
	return true;
}

static bool unlock(void *unused)
{
	return true;
}

int main(void)
{
       /* Check for presence of new thread safety API (version 2.42) */
       return !bfd_thread_init(lock, unlock, NULL);
}