1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

hurd: Fix exposition of s/gettimeofday through timespec_s/get

conform/ISO11/time.h/linknamespace complains that using timespec_get exposes
gettimeofday.

conform/POSIX/time.h/linknamespace complains that using clock_settime
exposes settimeofday.

	* sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
	__gettimeofday instead of gettimeofday.
	* sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
	instead of settimeofday.
This commit is contained in:
Samuel Thibault
2017-09-25 01:55:02 +02:00
parent 6174537c24
commit fcafcd162c
3 changed files with 7 additions and 3 deletions

View File

@ -89,7 +89,7 @@ __clock_settime (clockid_t clock_id, const struct timespec *tp)
struct timeval tv; \
TIMESPEC_TO_TIMEVAL (&tv, tp); \
\
retval = settimeofday (&tv, NULL); \
retval = __settimeofday (&tv, NULL); \
} while (0)
#ifdef SYSDEP_SETTIME