From e4994e769ed5b4219ddc6e5144a92068f5996614 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 22 Jul 2014 19:30:00 +0000 Subject: [PATCH] 2014-07-22 Joel Sherrill * libc/include/sys/time.h: Add prototype for adjtime() and wrap it and settimeofday() prototype with __BSD_VISIBLE. --- newlib/ChangeLog | 5 +++++ newlib/libc/include/sys/time.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index f5ba5d6a8..50e0f04e2 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2014-07-22 Joel Sherrill + + * libc/include/sys/time.h: Add prototype for adjtime() and + wrap it and settimeofday() prototype with __BSD_VISIBLE. + 2014-07-17 Hesham ALMatary * configure.host: Remove or16 and or32 targets and add or1k. diff --git a/newlib/libc/include/sys/time.h b/newlib/libc/include/sys/time.h index 19325804b..be16497fc 100644 --- a/newlib/libc/include/sys/time.h +++ b/newlib/libc/include/sys/time.h @@ -76,7 +76,10 @@ int _EXFUN(_gettimeofday, (struct timeval *__p, void *__tz)); int _EXFUN(gettimeofday, (struct timeval *__restrict __p, void *__restrict __tz)); +#if __BSD_VISIBLE int _EXFUN(settimeofday, (const struct timeval *, const struct timezone *)); +int _EXFUN(adjtime, (const struct timeval *, struct timeval *)); +#endif int _EXFUN(utimes, (const char *__path, const struct timeval *__tvp)); int _EXFUN(getitimer, (int __which, struct itimerval *__value)); int _EXFUN(setitimer, (int __which, const struct itimerval *__restrict __value, -- 2.43.5