From ac2147483cfcbb6f01123d65e67b7bb363bddc8f Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Fri, 28 Nov 2008 18:45:57 +0000 Subject: added some windows support (not working now) try to build with following Options: NOCRYPT;NODAEMON;NOEXEC;NOPACKED;NOSYSLOG;NOROUTING;NOSIGNALCONTROLLER --- src/log.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'src/log.h') diff --git a/src/log.h b/src/log.h index ac87bbd..5c12661 100644 --- a/src/log.h +++ b/src/log.h @@ -34,7 +34,9 @@ #include #include +#ifndef NOSYSLOG #include +#endif #include "threadUtils.hpp" @@ -59,6 +61,7 @@ private: class Log : public std::ostringstream { public: +#ifndef NOSYSLOG static const int FAC_USER = LOG_USER; static const int FAC_MAIL = LOG_MAIL; static const int FAC_DAEMON = LOG_DAEMON; @@ -87,6 +90,36 @@ public: static const int PRIO_NOTICE = LOG_NOTICE; static const int PRIO_INFO = LOG_INFO; static const int PRIO_DEBUG = LOG_DEBUG; +#else + static const int FAC_USER = 0; + static const int FAC_MAIL = 0; + static const int FAC_DAEMON = 0; + static const int FAC_AUTH = 0; + static const int FAC_SYSLOG = 0; + static const int FAC_LPR = 0; + static const int FAC_NEWS = 0; + static const int FAC_UUCP = 0; + static const int FAC_CRON = 0; + static const int FAC_AUTHPRIV = 0; + static const int FAC_FTP = 0; + static const int FAC_LOCAL0 = 0; + static const int FAC_LOCAL1 = 0; + static const int FAC_LOCAL2 = 0; + static const int FAC_LOCAL3 = 0; + static const int FAC_LOCAL4 = 0; + static const int FAC_LOCAL5 = 0; + static const int FAC_LOCAL6 = 0; + static const int FAC_LOCAL7 = 0; + + static const int PRIO_EMERG = 0; + static const int PRIO_ALERT = 0; + static const int PRIO_CRIT = 0; + static const int PRIO_ERR = 0; + static const int PRIO_WARNING = 0; + static const int PRIO_NOTICE = 0; + static const int PRIO_INFO = 0; + static const int PRIO_DEBUG = 0; +#endif static Log& instance(); -- cgit v1.2.3