aboutsummaryrefslogtreecommitdiff
path: root/sysklogd
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-08-28 20:16:42 +0000
committerRob Landley <rob@landley.net>2006-08-28 20:16:42 +0000
commit028ba280be75fc58d97a4cc48dc877d229dc04d3 (patch)
tree7f362a52bb7ea131382552cf05ff2554355befaf /sysklogd
parentb8cea6dcb39b3c4c2b1c153bc5fd902345548492 (diff)
downloadbusybox-028ba280be75fc58d97a4cc48dc877d229dc04d3.tar.gz
More allbareconfig fixes.
Diffstat (limited to 'sysklogd')
-rw-r--r--sysklogd/syslogd.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index fc3845606..a8b52b36e 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -247,6 +247,10 @@ static void circ_message(const char *msg)
}
}
+#else
+void ipcsyslog_cleanup(void);
+void ipcsyslog_init(void);
+void circ_message(const char *msg);
#endif /* CONFIG_FEATURE_IPC_SYSLOG */
/* Note: There is also a function called "message()" in init.c */
@@ -279,6 +283,7 @@ static void message(char *fmt, ...)
fl.l_type = F_WRLCK;
fcntl(fd, F_SETLKW, &fl);
+#ifdef CONFIG_FEATURE_ROTATE_LOGFILE
if (ENABLE_FEATURE_ROTATE_LOGFILE && logFileSize > 0 ) {
struct stat statf;
int r = fstat(fd, &statf);
@@ -307,7 +312,7 @@ static void message(char *fmt, ...)
}
}
}
-
+#endif
va_start(arguments, fmt);
vdprintf(fd, fmt, arguments);
va_end(arguments);
@@ -341,6 +346,8 @@ static void init_RemoteLog(void)
remoteaddr.sin_addr = *(struct in_addr *) *(xgethostbyname(RemoteHost))->h_addr_list;
remoteaddr.sin_port = htons(RemotePort);
}
+#else
+void init_RemoteLog(void);
#endif
static void logMessage(int pri, char *msg)