libtirpc: Fix type of xdr_{,u_}longlong_t

Causing build error for asymptote:

```
note: candidate function not viable: no known conversion from 'unsigned long long *' to 'uint64_t *' (aka 'unsigned long *') for 2nd argument
```
This commit is contained in:
Tee KOBAYASHI 2022-01-07 07:59:10 +09:00 committed by Henrik Grimler
parent f6fe041fa2
commit c413f37bf7
2 changed files with 7 additions and 6 deletions

View File

@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Transport Independent RPC library"
TERMUX_PKG_LICENSE="BSD" TERMUX_PKG_LICENSE="BSD"
TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.3.2 TERMUX_PKG_VERSION=1.3.2
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/sourceforge/libtirpc/libtirpc-${TERMUX_PKG_VERSION}.tar.bz2 TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/sourceforge/libtirpc/libtirpc-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=e24eb88b8ce7db3b7ca6eb80115dd1284abc5ec32a8deccfed2224fc2532b9fd TERMUX_PKG_SHA256=e24eb88b8ce7db3b7ca6eb80115dd1284abc5ec32a8deccfed2224fc2532b9fd
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-gssapi" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-gssapi"

View File

@ -7,8 +7,8 @@ diff -uNr libtirpc-1.2.6/src/xdr.c libtirpc-1.2.6.mod/src/xdr.c
-typedef quad_t longlong_t; /* ANSI long long type */ -typedef quad_t longlong_t; /* ANSI long long type */
-typedef u_quad_t u_longlong_t; /* ANSI unsigned long long type */ -typedef u_quad_t u_longlong_t; /* ANSI unsigned long long type */
+typedef int64_t longlong_t; /* ANSI long long type */ +typedef long long longlong_t; /* ANSI long long type */
+typedef uint64_t u_longlong_t; /* ANSI unsigned long long type */ +typedef unsigned long long u_longlong_t; /* ANSI unsigned long long type */
/* /*
* constants specific to the xdr "protocol" * constants specific to the xdr "protocol"
@ -35,10 +35,10 @@ diff -uNr libtirpc-1.2.6/tirpc/rpc/xdr.h libtirpc-1.2.6.mod/tirpc/rpc/xdr.h
-extern bool_t xdr_u_hyper(XDR *, u_quad_t *); -extern bool_t xdr_u_hyper(XDR *, u_quad_t *);
-extern bool_t xdr_longlong_t(XDR *, quad_t *); -extern bool_t xdr_longlong_t(XDR *, quad_t *);
-extern bool_t xdr_u_longlong_t(XDR *, u_quad_t *); -extern bool_t xdr_u_longlong_t(XDR *, u_quad_t *);
+extern bool_t xdr_hyper(XDR *, int64_t *); +extern bool_t xdr_hyper(XDR *, long long *);
+extern bool_t xdr_u_hyper(XDR *, uint64_t *); +extern bool_t xdr_u_hyper(XDR *, unsigned long long *);
+extern bool_t xdr_longlong_t(XDR *, int64_t *); +extern bool_t xdr_longlong_t(XDR *, long long *);
+extern bool_t xdr_u_longlong_t(XDR *, uint64_t *); +extern bool_t xdr_u_longlong_t(XDR *, unsigned long long *);
extern u_long xdr_sizeof(xdrproc_t, void *); extern u_long xdr_sizeof(xdrproc_t, void *);
#ifdef __cplusplus #ifdef __cplusplus
} }