Skip to content

Commit

Permalink
tests/tcg: Don't #include <inttypes.h> in aarch64/system/vtimer.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
iii-i authored and bonzini committed Jan 18, 2024
1 parent 5fd1674 commit 379652e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tcg/aarch64/system/vtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* SPDX-License-Identifier: GPL-2.0-or-later
*/

#include <inttypes.h>
#include <stdint.h>
#include <minilib.h>

/* grabbed from Linux */
Expand Down

0 comments on commit 379652e

Please sign in to comment.