summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-06 14:43:37 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-06 14:43:37 +0000
commit96cbd4c11d19145e3bf33c7baa73208b4d7dcc81 (patch)
tree74da94a3dd55d78635e6c9e53752fe722d90f1ed /libc
parentc3bb237b134d01271b72e95b801a0b7bbb564423 (diff)
Add prototype for __time, #define time __time is not usable here
Diffstat (limited to 'libc')
-rw-r--r--libc/misc/syslog/syslog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/misc/syslog/syslog.c b/libc/misc/syslog/syslog.c
index 5605aecf1..4472abcfd 100644
--- a/libc/misc/syslog/syslog.c
+++ b/libc/misc/syslog/syslog.c
@@ -31,7 +31,6 @@
* SUCH DAMAGE.
*/
-#define time __time
#define ctime __ctime
#define sigaction __sigaction_internal
@@ -84,6 +83,7 @@
#include <ctype.h>
#include <signal.h>
+extern time_t __time (time_t *__timer) attribute_hidden;
#ifdef __UCLIBC_HAS_THREADS__
# include <pthread.h>
@@ -172,7 +172,7 @@ __vsyslog( int pri, const char *fmt, va_list ap )
* no longer than 64 characters plus length of the LogTag. So it's
* safe to test only LogTag and use normal sprintf everywhere else.
*/
- (void)time(&now);
+ (void)__time(&now);
stdp = p = tbuf + sprintf(tbuf, "<%d>%.15s ", pri, ctime(&now) + 4);
if (LogTag) {
if (__strlen(LogTag) < sizeof(tbuf) - 64)