Parent: b5ff08b267445f9407d6eefad86cde45ec3a50a2
Author: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2022-02-15 23:36:35
Tree: 50b56120715eefaeab8632d8cb16d8e2f19f937d
build: Fix errors with glibc < 2.25 getrandom and sys/random.h are only available since glibc 2.25: https://www.gnu.org/software/gnulib/manual/html_node/sys_002frandom_002eh.html resulting in the following build failures since version 5.63 and https://git.kernel.org/pub/scm/bluetooth/bluez.git/log/?qt=grep&q=getrandom: plugins/autopair.c:20:24: fatal error: sys/random.h: No such file or directory #include <sys/random.h> ^ To fix this build failure, add util_getrandom and a fallback (borrowed from pipewire and licensed under MIT): https://gitlab.freedesktop.org/pipewire/pipewire/-/blob/master/src/pipewire/utils.c Fixes: - http://autobuild.buildroot.org/results/6b8870d12e0804d6154230a7322c49416c1dc0e2
Diffstat
| M | configure.ac | | | 4 | +++- |
| M | emulator/le.c | | | 3 | +- - |
| M | emulator/phy.c | | | 3 | +- - |
| M | peripheral/main.c | | | 4 | ++- - |
| M | plugins/autopair.c | | | 4 | ++- - |
| M | profiles/health/hdp.c | | | 4 | ++- - |
| M | profiles/health/mcap.c | | | 6 | +++- - - |
| M | src/shared/util.c | | | 25 | +++++++++++++++++++++++++ |
| M | src/shared/util.h | | | 2 | ++ |
| M | tools/btgatt-server.c | | | 3 | +- - |
10 files changed, 42 insertions(+), 16 deletions(-)