]> code.ossystems Code Review - openembedded-core.git/commit
qemu: fix build issue on new hosts with glibc 2.30
authorArmin Kuster <akuster808@gmail.com>
Sun, 6 Oct 2019 04:30:56 +0000 (21:30 -0700)
committerArmin Kuster <akuster808@gmail.com>
Sun, 6 Oct 2019 15:30:35 +0000 (08:30 -0700)
commitfbedc2d73ff472c89ba273a890408f93015e8f17
tree7d8118af12c58afe5b327743383491a8d3c8cc88
parent8b9703454cb2a8a0aa6b7942498f191935d547ea
qemu: fix build issue on new hosts with glibc 2.30

This fixes the following error:

TOPDIR/tmp/work/x86_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/syscall.c:254:16: error: static declaration of ‘gettid’ follows non-static declaration
 254 | _syscall0(int, gettid)
 |                ^~~~~~
 TOPDIR/tmp/work/x86_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/syscall.c:185:13: note: in definition of macro ‘_syscall0’
 185 | static type name (void)   \
 |             ^~~~
 In file included from /usr/include/unistd.h:1170,
 from TOPDIR/tmp/work/x86_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/include/qemu/osdep.h:90,
 from TOPDIR/tmp/work/x86_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/syscall.c:20:
 /usr/include/bits/unistd_ext.h:34:16: note: previous declaration of ‘gettid’ was here
 34 | extern __pid_t gettid (void) __THROW;
 |                ^~~~~~

Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-devtools/qemu/qemu.inc
meta/recipes-devtools/qemu/qemu/0001-linux-user-assume-__NR_gettid-always-exists.patch [new file with mode: 0644]
meta/recipes-devtools/qemu/qemu/0001-linux-user-rename-gettid-to-sys_gettid-to-avoid-clas.patch [new file with mode: 0644]