From 7e2b221be1bae211b580ea1204dc7c54b2684abd Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 19 Oct 2004 20:10:18 +0000 Subject: Peter S. Mazinger writes: Hello! Would the attached patch be acceptable (maybe instead of __libc_gettimeofday using __gettimeofday) We have some issues, see http://bugs.gentoo.org/show_bug.cgi?id=65892 --- libc/inet/rpc/auth_unix.c | 4 ++-- libc/inet/rpc/create_xid.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'libc/inet/rpc') diff --git a/libc/inet/rpc/auth_unix.c b/libc/inet/rpc/auth_unix.c index 3e14ba2a5..6fe89048b 100644 --- a/libc/inet/rpc/auth_unix.c +++ b/libc/inet/rpc/auth_unix.c @@ -130,7 +130,7 @@ no_memory: /* * fill in param struct from the given params */ - (void) gettimeofday (&now, (struct timezone *) 0); + (void) __libc_gettimeofday (&now, (struct timezone *) 0); aup.aup_time = now.tv_sec; aup.aup_machname = machname; aup.aup_uid = uid; @@ -265,7 +265,7 @@ authunix_refresh (AUTH *auth) goto done; /* update the time and serialize in place */ - (void) gettimeofday (&now, (struct timezone *) 0); + (void) __libc_gettimeofday (&now, (struct timezone *) 0); aup.aup_time = now.tv_sec; xdrs.x_op = XDR_ENCODE; XDR_SETPOS (&xdrs, 0); diff --git a/libc/inet/rpc/create_xid.c b/libc/inet/rpc/create_xid.c index cbb961e4d..8d8a34070 100644 --- a/libc/inet/rpc/create_xid.c +++ b/libc/inet/rpc/create_xid.c @@ -51,7 +51,7 @@ _create_xid (void) { struct timeval now; - gettimeofday (&now, (struct timezone *) 0); + __libc_gettimeofday (&now, (struct timezone *) 0); srand48_r (now.tv_sec ^ now.tv_usec, &__rpc_lrand48_data); is_initialized = 1; } -- cgit v1.2.3