Development discussion of WireGuard
 help / color / mirror / Atom feed
* compat: update for RHEL 8.7
@ 2022-11-10 20:41 Phil Perry
  0 siblings, 0 replies; only message in thread
From: Phil Perry @ 2022-11-10 20:41 UTC (permalink / raw)
  To: wireguard, Jason A. Donenfeld

Update for release of RHEL 8.7, which now backports 
ktime_get_coarse_boottime_ns()

Signed-off-by: Philip J. Perry <phil@elrepo.org>


diff -Naurp wireguard-linux-compat-1.0.20220627.orig/src/compat/compat.h 
wireguard-linux-compat-1.0.20220627/src/compat/compat.h
--- a/src/compat/compat.h        2022-06-27 11:54:37.000000000 +0100
+++ b/src/compat/compat.h     2022-11-10 19:55:49.653581044 +0000
@@ -16,7 +16,7 @@
  #define ISRHEL7
  #elif RHEL_MAJOR == 8
  #define ISRHEL8
-#if RHEL_MINOR >= 6
+#if RHEL_MINOR >= 7
  #define ISCENTOS8S
  #endif
  #endif
@@ -412,6 +412,7 @@ static inline u64 __compat_jiffies64_to_
  }
  #define jiffies64_to_nsecs __compat_jiffies64_to_nsecs
  #endif
+#if !defined(ISRHEL8)
  static inline u64 ktime_get_coarse_boottime_ns(void)
  {
  #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0)
@@ -423,6 +424,7 @@ static inline u64 ktime_get_coarse_boott
  #endif
  }
  #endif
+#endif

  #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 0)
  #include <linux/inetdevice.h>


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-10 20:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-10 20:41 compat: update for RHEL 8.7 Phil Perry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).