Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. --- a/src/compat/compat.h
  2. +++ b/src/compat/compat.h
  3. @@ -408,6 +408,15 @@ static inline u64 __wgcompat_ktime_get_boot_fast_ns(void)
  4. #define ktime_get_boot_fast_ns __wgcompat_ktime_get_boot_fast_ns
  5. #endif
  6.  
  7. +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 53)
  8. +#include <linux/ktime.h>
  9. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0)
  10. +#include <linux/timekeeping.h>
  11. +#endif
  12. +/* This function exists in earlier versions, but the sub-seconds portion is always zero until 5.1.12. */
  13. +#define ktime_get_coarse_boottime ktime_get_boot_fast_ns
  14. +#endif
  15. +
  16. #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 0)
  17. #include <linux/inetdevice.h>
  18. 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