]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
rpcgen: tests: Include stdint.h in test_demo.c
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 8 Apr 2024 13:31:30 +0000 (15:31 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 8 Apr 2024 13:47:24 +0000 (15:47 +0200)
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 <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
scripts/rpcgen/tests/test_demo.c

index ae19a674cf1ecd558c032f3fc031453cc41cdad6..e6ba7ddbc5e6319d9b6716f8e9f5c4fc5513ae5c 100644 (file)
@@ -2,6 +2,7 @@
 #include <rpc/types.h>
 #include <rpc/xdr.h>
 #include <stdbool.h>
+#include <stdint.h>
 
 #ifdef __APPLE__
 # define xdr_uint64_t xdr_u_int64_t