about summary refs log tree commit diff
path: root/resolv/res_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'resolv/res_init.c')
-rw-r--r--resolv/res_init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/resolv/res_init.c b/resolv/res_init.c
index b22611b087..906a2b1571 100644
--- a/resolv/res_init.c
+++ b/resolv/res_init.c
@@ -386,7 +386,7 @@ res_init()
 	    (void) fclose(fp);
 	}
 	if (_res.defdname[0] == 0 &&
-	    gethostname(buf, sizeof(_res.defdname) - 1) == 0 &&
+	    __gethostname(buf, sizeof(_res.defdname) - 1) == 0 &&
 	    (cp = strchr(buf, '.')) != NULL)
 		strcpy(_res.defdname, cp + 1);
 
@@ -651,6 +651,6 @@ res_randomid()
 {
 	struct timeval now;
 
-	gettimeofday(&now, NULL);
-	return (0xffff & (now.tv_sec ^ now.tv_usec ^ getpid()));
+	__gettimeofday(&now, NULL);
+	return (0xffff & (now.tv_sec ^ now.tv_usec ^ __getpid()));
 }