diff options
author | Marc-André Lureau | 2020-08-28 13:07:33 +0200 |
---|---|---|
committer | Paolo Bonzini | 2020-09-08 11:43:16 +0200 |
commit | 3909def82a699e4d628c07df948b4dd2656610ea (patch) | |
tree | ea4be56ef56387c7463bf8c9b28a70f405d5e432 /tests/migration | |
parent | tests/migration/stress: remove unused exit_success (diff) | |
download | qemu-3909def82a699e4d628c07df948b4dd2656610ea.tar.gz qemu-3909def82a699e4d628c07df948b4dd2656610ea.tar.xz qemu-3909def82a699e4d628c07df948b4dd2656610ea.zip |
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 05d85051e3..0c72a420be 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) { |