summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/include/sys/time.h3
2 files changed, 8 insertions, 0 deletions
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 <joel.sherrill@oarcorp.com>
+
+ * libc/include/sys/time.h: Add prototype for adjtime() and
+ wrap it and settimeofday() prototype with __BSD_VISIBLE.
+
2014-07-17 Hesham ALMatary <heshamelmatary@gmail.com>
* 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,