| 1 | /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) |
| 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 | |
| 12 | #include <lttng/kernel-version.h> |
| 13 | |
| 14 | /* |
| 15 | * Use 64bit timespec on kernels that have it, this makes 32bit arch |
| 16 | * y2038 compliant. |
| 17 | */ |
| 18 | #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,17,0)) |
| 19 | # define LTTNG_KERNEL_HAS_TIMESPEC64 |
| 20 | #endif |
| 21 | |
| 22 | #endif /* _LTTNG_WRAPPER_TIME_H */ |