summaryrefslogtreecommitdiffstats
path: root/libc/misc/syslog/syslog.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-12-08 04:31:05 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-12-08 04:31:05 +0000
commitc5ad60615407d6f54807ed52656d962d1dcbbe3e (patch)
tree5ef0a9f39d02d46f8b8f4895e2deada7a1b72340 /libc/misc/syslog/syslog.c
parentdc92cc5ad2d89036502585cf05426012b1f8647e (diff)
downloaduClibc-alpine-c5ad60615407d6f54807ed52656d962d1dcbbe3e.tar.bz2
uClibc-alpine-c5ad60615407d6f54807ed52656d962d1dcbbe3e.tar.xz
Merge from trunk.
Diffstat (limited to 'libc/misc/syslog/syslog.c')
-rw-r--r--libc/misc/syslog/syslog.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libc/misc/syslog/syslog.c b/libc/misc/syslog/syslog.c
index 5605aecf1..129b2036e 100644
--- a/libc/misc/syslog/syslog.c
+++ b/libc/misc/syslog/syslog.c
@@ -31,9 +31,7 @@
* SUCH DAMAGE.
*/
-#define time __time
#define ctime __ctime
-#define sigaction __sigaction_internal
#define __FORCE_GLIBC
#define _GNU_SOURCE
@@ -84,6 +82,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 +171,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)