From: serassio <> Date: Sun, 14 May 2006 22:52:02 +0000 (+0000) Subject: Syslog is not available on all platforms X-Git-Tag: SQUID_3_0_PRE4~131 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e4f69a4c4f1fc158cd8ca5f9717b865d4e266784;p=thirdparty%2Fsquid.git Syslog is not available on all platforms --- diff --git a/src/logfile.cc b/src/logfile.cc index 006286f38d..c0d7c991c0 100644 --- a/src/logfile.cc +++ b/src/logfile.cc @@ -1,5 +1,5 @@ /* - * $Id: logfile.cc,v 1.18 2006/05/14 11:52:52 serassio Exp $ + * $Id: logfile.cc,v 1.19 2006/05/14 16:52:02 serassio Exp $ * * DEBUG: section 50 Log file handling * AUTHOR: Duane Wessels @@ -38,6 +38,8 @@ static void logfileWriteWrapper(Logfile * lf, const void *buf, size_t len); +#if HAVE_SYSLOG + struct syslog_symbol_t { const char* name; @@ -75,6 +77,7 @@ static int syslog_ntoa (const char* s) } #define PRIORITY_MASK (LOG_ERR | LOG_WARNING | LOG_NOTICE | LOG_INFO | LOG_DEBUG) +#endif Logfile * logfileOpen(const char *path, size_t bufsz, int fatal_flag) {