From d55cc313b8fefffb87ec1c9b5aab424fe8aca712 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Wed, 10 Jun 2015 15:47:03 -0400 Subject: Enable rtime() API for backward compatibility with glibc's SunRPC Note that TI-RPC redefines rtime() to use TI-RPC-style arguments. libtirpc on Linux has never provided rtime(), but glibc does. Since rtime() is something of a legacy anyway, just make our version of rtime() look and work like the glibc version. Signed-off-by: Chuck Lever --- tirpc/rpc/auth_des.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tirpc') diff --git a/tirpc/rpc/auth_des.h b/tirpc/rpc/auth_des.h index 77e169d..73103c6 100644 --- a/tirpc/rpc/auth_des.h +++ b/tirpc/rpc/auth_des.h @@ -127,7 +127,7 @@ extern "C" { #endif extern bool_t xdr_authdes_cred(XDR *, struct authdes_cred *); extern bool_t xdr_authdes_verf(XDR *, struct authdes_verf *); -extern int rtime(dev_t, struct netbuf *, int, struct timeval *, +extern int rtime(struct sockaddr_in *, struct timeval *, struct timeval *); extern void kgetnetname(char *); extern enum auth_stat _svcauth_des(struct svc_req *, struct rpc_msg *); -- cgit v1.2.1