summaryrefslogtreecommitdiff
path: root/libc/inet/rpc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-10-19 20:10:18 +0000
committerEric Andersen <andersen@codepoet.org>2004-10-19 20:10:18 +0000
commit7e2b221be1bae211b580ea1204dc7c54b2684abd (patch)
treeeda4e5658779c094fde56643d4f57464f092b945 /libc/inet/rpc
parentb4f49294526ceadbc4194ec7efb9af04f1e6e577 (diff)
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
Diffstat (limited to 'libc/inet/rpc')
-rw-r--r--libc/inet/rpc/auth_unix.c4
-rw-r--r--libc/inet/rpc/create_xid.c2
2 files changed, 3 insertions, 3 deletions
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;
}