package/libkcapi: fix build on riscv32
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Thu, 27 May 2021 20:49:04 +0000 (22:49 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tue, 1 Jun 2021 20:33:16 +0000 (22:33 +0200)
commit5a075b47a86e4e2b147256bd946c9cfd1d3bc15e
tree69b8bb603d9415a8d7d107e6b26f001ddae352c2
parent34173da168f300b58957abb53c8f5fcaf8d8e605
package/libkcapi: fix build on riscv32

Fix the following build failure on riscv32:

lib/internal.h:331:20: error: '__NR_io_getevents' undeclared (first use in this function); did you mean 'io_getevents'?
  331 |     return syscall(__NR_io_getevents, ctx, min, max, events, timeout);
      |                    ^~~~~~~~~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/c828d4330a8888fe8db4299dc2f20759947f329f

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/libkcapi/0001-Disable-use-of-__NR_io_getevents-when-not-defined.patch [new file with mode: 0644]