diff options
author | Ilya Maximets <i.maximets@ovn.org> | 2020-08-12 10:57:07 +0200 |
---|---|---|
committer | Ilya Maximets <i.maximets@ovn.org> | 2020-08-12 19:09:51 +0200 |
commit | b8d42f875c8c876008e296ec485d6bbac08bc4c9 (patch) | |
tree | 2d95d4132c618c8b1220536dfa269a76adc1ae24 /acinclude.m4 | |
parent | 74e6bdad8f2a215c8cffbb2d5f305ce982fb6ebb (diff) | |
download | openvswitch-b8d42f875c8c876008e296ec485d6bbac08bc4c9.tar.gz |
acinclude: Fix build with kernels with prandom* moved to prandom.h.
Recent commit c0842fbc1b18 ("random32: move the pseudo-random 32-bit
definitions to prandom.h") in upstream kernel moved the definition
of prandom_* functions from random.h to prandom.h. This change was
also backported to stable kernels.
Fixing our configure script to look for these functions in a new
location and avoid build failures:
datapath/linux/compat/include/linux/random.h:11:19:
error: redefinition of 'prandom_u32_max'
Acked-by: Greg Rose <gvrose8192@gmail.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 4bac9dbdd..84f344da0 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -817,6 +817,10 @@ AC_DEFUN([OVS_CHECK_LINUX_COMPAT], [ [prandom_u32[[\(]]], [OVS_DEFINE([HAVE_PRANDOM_U32])]) OVS_GREP_IFELSE([$KSRC/include/linux/random.h], [prandom_u32_max]) + OVS_GREP_IFELSE([$KSRC/include/linux/prandom.h], + [prandom_u32[[\(]]], + [OVS_DEFINE([HAVE_PRANDOM_U32])]) + OVS_GREP_IFELSE([$KSRC/include/linux/prandom.h], [prandom_u32_max]) OVS_GREP_IFELSE([$KSRC/include/net/rtnetlink.h], [get_link_net]) OVS_GREP_IFELSE([$KSRC/include/net/rtnetlink.h], [name_assign_type]) |