Skip to content

Commit f4b6edd

Browse files
committed
Fix compatibility with Centos 7 kernel backports.
Thanks to mzi77@github for the report.
1 parent 7709ac0 commit f4b6edd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compat.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ union nf_inet_addr {
107107
# elif LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0)
108108
# define prandom_u32 random32
109109
#endif
110+
#define prandom_u32_max compat_prandom_u32_max
110111
static inline u32 prandom_u32_max(u32 ep_ro)
111112
{
112113
return (u32)(((u64) prandom_u32() * ep_ro) >> 32);

0 commit comments

Comments
 (0)