mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
meson: fix migration/stress compilation with glibc>=2.30
gettid() was introduced with glibc 2.30. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20200828110734.1638685-16-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
c4c4aacb24
commit
3909def82a
2 changed files with 5 additions and 0 deletions
|
@ -29,10 +29,12 @@ const char *argv0;
|
|||
|
||||
#define PAGE_SIZE 4096
|
||||
|
||||
#ifndef CONFIG_GETTID
|
||||
static int gettid(void)
|
||||
{
|
||||
return syscall(SYS_gettid);
|
||||
}
|
||||
#endif
|
||||
|
||||
static __attribute__((noreturn)) void exit_failure(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue