]> git.proxmox.com Git - mirror_ovs.git/commit
acinclude: Fix build with kernels with prandom* moved to prandom.h.
authorIlya Maximets <i.maximets@ovn.org>
Wed, 12 Aug 2020 08:57:07 +0000 (10:57 +0200)
committerIlya Maximets <i.maximets@ovn.org>
Wed, 12 Aug 2020 17:09:51 +0000 (19:09 +0200)
commitb8d42f875c8c876008e296ec485d6bbac08bc4c9
tree2d95d4132c618c8b1220536dfa269a76adc1ae24
parent74e6bdad8f2a215c8cffbb2d5f305ce982fb6ebb
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>
acinclude.m4