From: Daniel P. Berrangé Date: Thu, 30 Nov 2023 14:07:55 +0000 (+0000) Subject: scripts/rpcgen: fix 64 unsigned int test on macOS X-Git-Tag: v9.10.0~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1f3fe268eb4f89625a627dcf20a858bd757dc329;p=thirdparty%2Flibvirt.git scripts/rpcgen: fix 64 unsigned int test on macOS macOS XDR library is an oddball using xdr_u_int64_t instead of xdr_uint64_t which everyone else has. The code generator already does the right thing, but the test program previously generated with the Linux rpcgen program does not compile on macOS due to this. Signed-off-by: Daniel P. Berrangé Reviewed-by: Andrea Bolognani --- diff --git a/scripts/rpcgen/tests/test_demo.c b/scripts/rpcgen/tests/test_demo.c index 931f25f982..ae19a674cf 100644 --- a/scripts/rpcgen/tests/test_demo.c +++ b/scripts/rpcgen/tests/test_demo.c @@ -3,6 +3,10 @@ #include #include +#ifdef __APPLE__ +# define xdr_uint64_t xdr_u_int64_t +#endif + #include "demo.h" #include "demo.c"