]> code.ossystems Code Review - openembedded-core.git/commit
gnutls_3.5.3.bb: Fix native build on distro with kernel < 3.4.17
authorKhem Raj <raj.khem@gmail.com>
Sat, 2 Dec 2017 00:37:37 +0000 (00:37 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 8 Mar 2018 02:02:15 +0000 (18:02 -0800)
commitce18ec34549cf11d84a906c2abe7a492b8687c4f
tree274ae82a54b79288c5e88157a08500525ae740c7
parentee49a37d096a76cce349d6eff7964daada58efb1
gnutls_3.5.3.bb: Fix native build on distro with kernel < 3.4.17

When using distros which use old kernels gnutls fails to build
due to missing SYS_getrandom, therefore we need to check for this
before using it.
Fixes errorr e.g.

| ../../../gnutls-3.5.3/lib/nettle/rnd-linux.c: In function 'have_getrandom':
| ../../../gnutls-3.5.3/lib/nettle/rnd-linux.c:59:42: error: 'SYS_getrandom' undeclared (first use in this function)
|  #  define getrandom(dst,s,flags) syscall(SYS_getrandom, (void*)dst, (size_t)s, (unsigned int)flags)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/gnutls/gnutls/check_SYS_getrandom.patch [new file with mode: 0644]
meta/recipes-support/gnutls/gnutls_3.5.3.bb