summaryrefslogtreecommitdiffstats
path: root/tools/build/feature/test-gettid.c
blob: ef24e42d3f1b877d991cad5ab5d16050772a5a58 (plain)
1
2
3
4
5
6
7
8
9
10
11
// SPDX-License-Identifier: GPL-2.0
// Copyright (C) 2019, Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com>
#define _GNU_SOURCE
#include <unistd.h>

int main(void)
{
	return gettid();
}

#undef _GNU_SOURCE