Namespace kernel version macros
[lttng-modules.git] / wrapper / time.h
CommitLineData
0ff00f07
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
360d3efe 12#include <lttng-kernel-version.h>
0ff00f07
MJ
13
14/*
15 * Use 64bit timespec on kernels that have it, this makes 32bit arch
16 * y2038 compliant.
17 */
360d3efe 18#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,17,0))
0ff00f07
MJ
19# define LTTNG_KERNEL_HAS_TIMESPEC64
20#endif
21
22#endif /* _LTTNG_WRAPPER_TIME_H */
This page took 0.023552 seconds and 4 git commands to generate.