summaryrefslogtreecommitdiff
path: root/src/include/liburing/compat.h
blob: 7eaad417df0a585d71ec462caeb84b8292fbd4ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* SPDX-License-Identifier: MIT */
#ifndef LIBURING_COMPAT_H
#define LIBURING_COMPAT_H

#if !defined(CONFIG_HAVE_KERNEL_RWF_T)
typedef int __kernel_rwf_t;
#endif

#if !defined(CONFIG_HAVE_KERNEL_TIMESPEC)
struct __kernel_timespec {
	int64_t		tv_sec;
	long long	tv_nsec;
};
#else
#include <linux/time_types.h>
#endif

#endif