]> 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>
Mon, 7 Oct 2019 02:52:52 +0000 (19:52 -0700)
commit5b5ca76cc5dd424248c7e687e562597a2c85df57
treec5cea3a4b87ef7473258c05bf3900fcb629b363d
parentc901bc8cd9de5853185af2059c6f1efeb4ccdd60
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/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]
meta/recipes-devtools/qemu/qemu_3.0.0.bb