summaryrefslogtreecommitdiffstatshomepage
path: root/src/compat.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-12-16 06:56:39 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-12-16 06:56:39 +0100
commit2b542fa8d05f465930532e58cc128496f9a53505 (patch)
tree3bc29fdacf87d3a34440496a4147177f1c70b05b /src/compat.h
parentmessages: increase header by 3 bytes for alignment (diff)
downloadwireguard-monolithic-historical-2b542fa8d05f465930532e58cc128496f9a53505.tar.xz
wireguard-monolithic-historical-2b542fa8d05f465930532e58cc128496f9a53505.zip
hashtables: use counter and int to ensure forward progress
Diffstat (limited to 'src/compat.h')
-rw-r--r--src/compat.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/compat.h b/src/compat.h
index 5efb4e4..eb4f31b 100644
--- a/src/compat.h
+++ b/src/compat.h
@@ -25,14 +25,6 @@
#define net_dbg_ratelimited(fmt, ...) do { if (0) no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__); } while (0)
#endif
-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0)
-#include <linux/security.h>
-#ifdef GRSECURITY_VERSION
-#include <linux/random.h>
-#endif
-#define get_random_long() (((u64)get_random_int() << 32) | get_random_int())
-#endif
-
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 3, 0)
#define RCU_LOCKDEP_WARN(cond, message) rcu_lockdep_assert(!(cond), message)
#endif