From 96cbd4c11d19145e3bf33c7baa73208b4d7dcc81 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Tue, 6 Dec 2005 14:43:37 +0000 Subject: Add prototype for __time, #define time __time is not usable here --- libc/misc/syslog/syslog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libc/misc') 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 #include +extern time_t __time (time_t *__timer) attribute_hidden; #ifdef __UCLIBC_HAS_THREADS__ # include @@ -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) -- cgit v1.2.3