From 0cd37ea56f26c08154aadbbbd68f7eb71f944cad Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Sat, 1 Aug 2020 03:50:55 +0000 Subject: [PATCH] [LibOS] Define struct __kernel_itimerspec for kernel < 4.19.0 Fixes building on RHEL/CentOS 8.2. --- LibOS/shim/include/shim_types.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/LibOS/shim/include/shim_types.h b/LibOS/shim/include/shim_types.h index 2547c30c..2c3814e9 100644 --- a/LibOS/shim/include/shim_types.h +++ b/LibOS/shim/include/shim_types.h @@ -56,7 +56,9 @@ struct __kernel_timespec { __kernel_time_t tv_sec; /* seconds */ long tv_nsec; /* nanoseconds */ }; +#endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 0) struct __kernel_itimerspec { struct __kernel_timespec it_interval; /* timer period */ struct __kernel_timespec it_value; /* timer expiration */