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é <berrange@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2023-11-30 14:07:55 +00:00 committed by Andrea Bolognani
parent fb48e1633c
commit 1f3fe268eb

View File

@ -3,6 +3,10 @@
#include <rpc/xdr.h>
#include <stdbool.h>
#ifdef __APPLE__
# define xdr_uint64_t xdr_u_int64_t
#endif
#include "demo.h"
#include "demo.c"