Commit | Line | Data |
---|---|---|
72dc372e MJ |
1 | /* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) |
2 | * | |
3 | * wrapper/time.h | |
4 | * | |
5 | * Copyright (C) 2020 Michael Jeanson <mjeanson@efficios.com> | |
6 | * Copyright (C) 2020 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
7 | */ | |
8 | ||
9 | #ifndef _LTTNG_WRAPPER_TIME_H | |
10 | #define _LTTNG_WRAPPER_TIME_H | |
11 | ||
2d042821 | 12 | #include <lttng-kernel-version.h> |
72dc372e MJ |
13 | |
14 | /* | |
15 | * Use 64bit timespec on kernels that have it, this makes 32bit arch | |
16 | * y2038 compliant. | |
17 | */ | |
2d042821 | 18 | #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,17,0)) |
72dc372e MJ |
19 | # define LTTNG_KERNEL_HAS_TIMESPEC64 |
20 | #endif | |
21 | ||
22 | #endif /* _LTTNG_WRAPPER_TIME_H */ |