Fix up the configuration rules and update Libc5 piece for Syslogd. (copied code from logread.c)

This commit is contained in:
Gennady Feldman 2001-10-26 16:09:09 +00:00
parent ee28362597
commit 087bc82bb0
2 changed files with 13 additions and 2 deletions

View File

@ -8,9 +8,14 @@ comment 'System Logging Utilities'
bool 'klogd' CONFIG_KLOGD
bool 'logger' CONFIG_LOGGER
bool 'logread' CONFIG_LOGREAD
bool 'syslogd' CONFIG_SYSLOGD
if [ "$CONFIG_SYSLOGD" = "y" ] ; then
bool ' Remote Log support ' CONFIG_FEATURE_REMOTE_LOG
bool ' Circular Buffer support ' CONFIG_FEATURE_IPC_SYSLOG
if [ "$CONFIG_FEATURE_IPC_SYSLOG" = "y" ] ; then
bool ' logread ' CONFIG_LOGREAD
fi
fi
endmenu

View File

@ -81,6 +81,12 @@ static int local_logging = FALSE;
/* circular buffer variables/structures */
#ifdef CONFIG_FEATURE_IPC_SYSLOG
#if __GNU_LIBRARY__ < 5
#error Sorry. Looks like you are using libc5.
#error libc5 shm support isnt good enough.
#error Please disable CONFIG_FEATURE_IPC_SYSLOG
#endif
#include <sys/ipc.h>
#include <sys/sem.h>
#include <sys/shm.h>