CNDP 22.08.0
Loading...
Searching...
No Matches
cne_gettid.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright (c) 2022 Intel Corporation
3 */
4
5#ifndef _CNE_GETTID_H_
6#define _CNE_GETTID_H_
7
14
15#ifdef __GLIBC_PREREQ
16#if !__GLIBC_PREREQ(2, 30)
17
18#include <sys/syscall.h>
19
20#define gettid() syscall(SYS_gettid)
21
22#endif /* !__GLIBC_PREREQ(2, 30) */
23#endif /* __GLIBC_PREREQ */
24#endif /* _CNE_GETTID_H_ */