diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2020-08-28 15:07:33 +0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-09-08 11:43:16 +0200 |
commit | 3909def82a699e4d628c07df948b4dd2656610ea (patch) | |
tree | ea4be56ef56387c7463bf8c9b28a70f405d5e432 /tests/migration | |
parent | c4c4aacb24747429a1ecaa03bef1ceddb736c368 (diff) | |
download | qemu-3909def82a699e4d628c07df948b4dd2656610ea.zip qemu-3909def82a699e4d628c07df948b4dd2656610ea.tar.gz qemu-3909def82a699e4d628c07df948b4dd2656610ea.tar.bz2 |
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>
Diffstat (limited to 'tests/migration')
-rw-r--r-- | tests/migration/stress.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/migration/stress.c b/tests/migration/stress.c index 05d8505..0c72a42 100644 --- a/tests/migration/stress.c +++ b/tests/migration/stress.c @@ -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) { |