Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- a/src/compat/compat.h
- +++ b/src/compat/compat.h
- @@ -408,6 +408,15 @@ static inline u64 __wgcompat_ktime_get_boot_fast_ns(void)
- #define ktime_get_boot_fast_ns __wgcompat_ktime_get_boot_fast_ns
- #endif
- +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 53)
- +#include <linux/ktime.h>
- +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0)
- +#include <linux/timekeeping.h>
- +#endif
- +/* This function exists in earlier versions, but the sub-seconds portion is always zero until 5.1.12. */
- +#define ktime_get_coarse_boottime ktime_get_boot_fast_ns
- +#endif
- +
- #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 0)
- #include <linux/inetdevice.h>
- static inline __be32 our_confirm_addr_indev(struct in_device *in_dev, __be32 dst, __be32 local, int scope)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement