summaryrefslogtreecommitdiff
path: root/include/time.h
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-04-16 11:55:10 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:39 +0200
commit1b11d19b60208e1dc932244aba6756eafa1e67ce (patch)
treec9e1f4a9893f09b65b82118eea67df39b239c6aa /include/time.h
parenta30f4f75a3e4e128594a35e7d6b7e001eee54cb7 (diff)
provide stime and settimeofday functions if at least one of the syscalls is available
Add hidden stime for possible use in settimeofday. Add stubs for both functions if none of the syscalls is present. Avoid circular dependency. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'include/time.h')
-rw-r--r--include/time.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/time.h b/include/time.h
index bea562399..50a412de0 100644
--- a/include/time.h
+++ b/include/time.h
@@ -318,6 +318,7 @@ extern long int timezone;
/* Set the system time to *WHEN.
This call is restricted to the superuser. */
extern int stime (__const time_t *__when) __THROW;
+libc_hidden_proto(stime)
# endif