Namespace kernel version macros
[lttng-modules.git] / include / wrapper / time.h
CommitLineData
b7cdc182 1/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
3636085f
MJ
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
5f4c791e 12#include <lttng/kernel-version.h>
3636085f
MJ
13
14/*
15 * Use 64bit timespec on kernels that have it, this makes 32bit arch
16 * y2038 compliant.
17 */
5f4c791e 18#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,17,0))
3636085f
MJ
19# define LTTNG_KERNEL_HAS_TIMESPEC64
20#endif
21
22#endif /* _LTTNG_WRAPPER_TIME_H */
This page took 0.029207 seconds and 4 git commands to generate.