Hi,
Here is a patch to get log4cxx to compile with mingw, using g++-4.1. Can
someone please apply this for me?
Thanks,
Bob Rossi
Index: src/syslogappender.cpp
===================================================================
--- src/syslogappender.cpp (revision 487559)
+++ src/syslogappender.cpp (working copy)
@@ -23,7 +23,7 @@
#include <log4cxx/helpers/transcoder.h>
#include <log4cxx/private/log4cxx_private.h>
-#ifdef LOG4CXX_HAVE_SYSLOG
+#if LOG4CXX_HAVE_SYSLOG != 0
#include <syslog.h>
#else
/* facility codes */
@@ -259,7 +259,7 @@
// On the local host, we can directly use the system function 'syslog'
// if it is available
-#ifdef LOG4CXX_HAVE_SYSLOG
+#if LOG4CXX_HAVE_SYSLOG != 0
if (sw == 0)
{
std::string sbuf;
@@ -323,7 +323,7 @@
// On the local host, we can directly use the system function 'syslog'
// if it is available (cf. append)
-#ifdef LOG4CXX_HAVE_SYSLOG
+#if LOG4CXX_HAVE_SYSLOG != 0
if (syslogHost1 != LOG4CXX_STR("localhost") && syslogHost1 !=
LOG4CXX_STR("127.0.0.1")
&& !syslogHost1.empty())
#endif