mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
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:
parent
fb48e1633c
commit
1f3fe268eb
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user