From: Michal Privoznik Date: Mon, 8 Apr 2024 13:31:30 +0000 (+0200) Subject: rpcgen: tests: Include stdint.h in test_demo.c X-Git-Tag: v10.3.0-rc1~65 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fdd440c096164180d9ae035cc311ce2b48ce4565;p=thirdparty%2Flibvirt.git rpcgen: tests: Include stdint.h in test_demo.c Since header file structure is a bit different on MacOS, it doesn't get uint64_t type declaration and thus test_demo.c must include it explicitly. This is proper solution anyway, because on Linux we're apparently relying on the header file sneaking through some other include. Resolves: https://gitlab.com/libvirt/libvirt/-/issues/619 Signed-off-by: Michal Privoznik Reviewed-by: Ján Tomko --- diff --git a/scripts/rpcgen/tests/test_demo.c b/scripts/rpcgen/tests/test_demo.c index ae19a674cf..e6ba7ddbc5 100644 --- a/scripts/rpcgen/tests/test_demo.c +++ b/scripts/rpcgen/tests/test_demo.c @@ -2,6 +2,7 @@ #include #include #include +#include #ifdef __APPLE__ # define xdr_uint64_t xdr_u_int64_t