diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-11-22 20:21:48 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-11-22 20:21:48 +0100 |
commit | fa8e7420316e82cfe59db4b4ce4f8f2876f64233 (patch) | |
tree | a9588d4be60a6b66bf70c6ce4b5b0cbe7a989b90 /src/compat/compat.h | |
parent | b511034dfcbe90edb743e74c6a82a3f3342a6f0e (diff) |
compat: support timespec64 on old kernels
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat/compat.h')
-rw-r--r-- | src/compat/compat.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h index 68590fa..4609417 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -523,6 +523,11 @@ struct _____dummy_container { char dev; }; #define COMPAT_CANNOT_USE_AVX512 #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0) +#define timespec64 timespec +#define getnstimeofday64 getnstimeofday +#endif + /* https://lkml.org/lkml/2017/6/23/790 */ #if IS_ENABLED(CONFIG_NF_CONNTRACK) #include <linux/ip.h> |