tests/tcg: Don't #include <inttypes.h> in aarch64/system/vtimer.c
authorIlya Leoshkevich <iii@linux.ibm.com>
Mon, 8 Jan 2024 12:50:00 +0000 (13:50 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 Jan 2024 09:43:51 +0000 (10:43 +0100)
make check-tcg fails on Fedora with:

    vtimer.c:9:10: fatal error: inttypes.h: No such file or directory

Fedora has a minimal aarch64 cross-compiler, which satisfies the
configure checks, so it's chosen instead of the dockerized one.
There is no cross-version of inttypes.h, however.

Fix by using stdint.h instead. The test does not require anything
from inttypes.h anyway.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-ID: <20240108125030.58569-1-iii@linux.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/tcg/aarch64/system/vtimer.c

index 42f2f7796c7e4749473289280994b3bf7bf3aa3f..7d725eced341bd2638935f05bed74a36103d1027 100644 (file)
@@ -6,7 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0-or-later
  */
 
-#include <inttypes.h>
+#include <stdint.h>
 #include <minilib.h>
 
 /* grabbed from Linux */