mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
protocol: Replace missing xdr_uint64_t on macOS
The macOS rpcgen actually generates calls to xdr_uint64_t but doesn't define them. Despite this we can just use xdr_int64_t instead since it's just byte swapping.
This commit is contained in:
@@ -196,6 +196,13 @@ PKG_CHECK_MODULES([RPC], [libtirpc], [], [
|
||||
AC_SUBST([RPC_LIBS])
|
||||
])
|
||||
|
||||
dnl Unsigned 64 bit ints are not available on macOS, but
|
||||
dnl the signed functions can be used instead.
|
||||
old_LIBS="$LIBS"
|
||||
LIBS="$LIBS $RPC_LIBS"
|
||||
AC_CHECK_FUNCS([xdr_uint64_t])
|
||||
LIBS="$old_LIBS"
|
||||
|
||||
AC_CHECK_PROG([RPCGEN],[rpcgen],[rpcgen],[no])
|
||||
AM_CONDITIONAL([HAVE_RPCGEN],[test "x$RPCGEN" != "xno"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user