You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rm...@apache.org on 2021/04/30 23:00:42 UTC

[logging-log4cxx] branch LOGCXX-526 created (now cd48b30)

This is an automated email from the ASF dual-hosted git repository.

rmiddleton pushed a change to branch LOGCXX-526
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git.


      at cd48b30  LOGCXX-526 Added includes to compile with GCC-11

This branch includes the following new commits:

     new cd48b30  LOGCXX-526 Added includes to compile with GCC-11

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[logging-log4cxx] 01/01: LOGCXX-526 Added includes to compile with GCC-11

Posted by rm...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rmiddleton pushed a commit to branch LOGCXX-526
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git

commit cd48b308f336637597a5e963b4d07ff3f30182a4
Author: Robert Middleton <ro...@rm5248.com>
AuthorDate: Fri Apr 30 19:00:25 2021 -0400

    LOGCXX-526 Added includes to compile with GCC-11
---
 src/main/cpp/action.cpp                 | 1 +
 src/main/cpp/appenderattachableimpl.cpp | 1 +
 src/main/cpp/appenderskeleton.cpp       | 1 +
 src/main/cpp/charsetdecoder.cpp         | 1 +
 src/main/cpp/charsetencoder.cpp         | 1 +
 src/main/cpp/fileappender.cpp           | 1 +
 src/main/cpp/hierarchy.cpp              | 1 +
 src/main/cpp/level.cpp                  | 1 +
 src/main/cpp/logger.cpp                 | 1 +
 src/main/cpp/loglog.cpp                 | 1 +
 src/main/cpp/rollingfileappender.cpp    | 1 +
 src/main/cpp/serversocket.cpp           | 1 +
 src/main/cpp/sockethubappender.cpp      | 1 +
 src/main/cpp/telnetappender.cpp         | 1 +
 src/main/cpp/writerappender.cpp         | 1 +
 src/main/include/log4cxx/log4cxx.h.in   | 1 +
 16 files changed, 16 insertions(+)

diff --git a/src/main/cpp/action.cpp b/src/main/cpp/action.cpp
index 0bafa26..fdc5285 100644
--- a/src/main/cpp/action.cpp
+++ b/src/main/cpp/action.cpp
@@ -16,6 +16,7 @@
  */
 #include <log4cxx/logstring.h>
 #include <log4cxx/rolling/action.h>
+#include <mutex>
 
 using namespace log4cxx;
 using namespace log4cxx::rolling;
diff --git a/src/main/cpp/appenderattachableimpl.cpp b/src/main/cpp/appenderattachableimpl.cpp
index df077a1..4277a2b 100644
--- a/src/main/cpp/appenderattachableimpl.cpp
+++ b/src/main/cpp/appenderattachableimpl.cpp
@@ -20,6 +20,7 @@
 #include <log4cxx/spi/loggingevent.h>
 #include <algorithm>
 #include <log4cxx/helpers/pool.h>
+#include <mutex>
 
 using namespace log4cxx;
 using namespace log4cxx::helpers;
diff --git a/src/main/cpp/appenderskeleton.cpp b/src/main/cpp/appenderskeleton.cpp
index dd32d3d..1fc2c96 100644
--- a/src/main/cpp/appenderskeleton.cpp
+++ b/src/main/cpp/appenderskeleton.cpp
@@ -21,6 +21,7 @@
 #include <log4cxx/helpers/onlyonceerrorhandler.h>
 #include <log4cxx/level.h>
 #include <log4cxx/helpers/stringhelper.h>
+#include <mutex>
 
 using namespace log4cxx;
 using namespace log4cxx::spi;
diff --git a/src/main/cpp/charsetdecoder.cpp b/src/main/cpp/charsetdecoder.cpp
index 374f49e..1071322 100644
--- a/src/main/cpp/charsetdecoder.cpp
+++ b/src/main/cpp/charsetdecoder.cpp
@@ -28,6 +28,7 @@
 #include <apr_portable.h>
 #include <log4cxx/helpers/stringhelper.h>
 #include <log4cxx/helpers/transcoder.h>
+#include <mutex>
 
 using namespace log4cxx;
 using namespace log4cxx::helpers;
diff --git a/src/main/cpp/charsetencoder.cpp b/src/main/cpp/charsetencoder.cpp
index 15b68f0..5a29135 100644
--- a/src/main/cpp/charsetencoder.cpp
+++ b/src/main/cpp/charsetencoder.cpp
@@ -28,6 +28,7 @@
 
 #include <log4cxx/private/log4cxx_private.h>
 #include <apr_portable.h>
+#include <mutex>
 
 #ifdef LOG4CXX_HAS_WCSTOMBS
 	#include <stdlib.h>
diff --git a/src/main/cpp/fileappender.cpp b/src/main/cpp/fileappender.cpp
index e6dc7d3..cca1abb 100644
--- a/src/main/cpp/fileappender.cpp
+++ b/src/main/cpp/fileappender.cpp
@@ -25,6 +25,7 @@
 #include <log4cxx/helpers/outputstreamwriter.h>
 #include <log4cxx/helpers/bufferedwriter.h>
 #include <log4cxx/helpers/bytebuffer.h>
+#include <mutex>
 
 using namespace log4cxx;
 using namespace log4cxx::helpers;
diff --git a/src/main/cpp/hierarchy.cpp b/src/main/cpp/hierarchy.cpp
index 80ca14f..4f51744 100644
--- a/src/main/cpp/hierarchy.cpp
+++ b/src/main/cpp/hierarchy.cpp
@@ -37,6 +37,7 @@
 #include <log4cxx/helpers/aprinitializer.h>
 #include <log4cxx/defaultconfigurator.h>
 #include <log4cxx/spi/rootlogger.h>
+#include <mutex>
 #include "assert.h"
 
 
diff --git a/src/main/cpp/level.cpp b/src/main/cpp/level.cpp
index e7bf4e3..8c739c1 100644
--- a/src/main/cpp/level.cpp
+++ b/src/main/cpp/level.cpp
@@ -23,6 +23,7 @@
 	#define LOG4CXX 1
 #endif
 #include <log4cxx/helpers/aprinitializer.h>
+#include <mutex>
 
 using namespace log4cxx;
 using namespace log4cxx::helpers;
diff --git a/src/main/cpp/logger.cpp b/src/main/cpp/logger.cpp
index fc617ae..840d969 100644
--- a/src/main/cpp/logger.cpp
+++ b/src/main/cpp/logger.cpp
@@ -33,6 +33,7 @@
 #endif
 #include <log4cxx/private/log4cxx_private.h>
 #include <log4cxx/helpers/aprinitializer.h>
+#include <mutex>
 
 using namespace log4cxx;
 using namespace log4cxx::helpers;
diff --git a/src/main/cpp/loglog.cpp b/src/main/cpp/loglog.cpp
index c039070..097bc9b 100644
--- a/src/main/cpp/loglog.cpp
+++ b/src/main/cpp/loglog.cpp
@@ -25,6 +25,7 @@
 #include <log4cxx/private/log4cxx_private.h>
 #include <log4cxx/helpers/aprinitializer.h>
 #include <log4cxx/helpers/systemerrwriter.h>
+#include <mutex>
 
 using namespace log4cxx;
 using namespace log4cxx::helpers;
diff --git a/src/main/cpp/rollingfileappender.cpp b/src/main/cpp/rollingfileappender.cpp
index 3e6f2dc..7d236f4 100644
--- a/src/main/cpp/rollingfileappender.cpp
+++ b/src/main/cpp/rollingfileappender.cpp
@@ -40,6 +40,7 @@
 #include <log4cxx/rolling/fixedwindowrollingpolicy.h>
 #include <log4cxx/rolling/manualtriggeringpolicy.h>
 #include <log4cxx/helpers/transcoder.h>
+#include <mutex>
 
 using namespace log4cxx;
 using namespace log4cxx::rolling;
diff --git a/src/main/cpp/serversocket.cpp b/src/main/cpp/serversocket.cpp
index fb8f2da..1cc9a3b 100644
--- a/src/main/cpp/serversocket.cpp
+++ b/src/main/cpp/serversocket.cpp
@@ -16,6 +16,7 @@
  */
 
 #include <log4cxx/helpers/serversocket.h>
+#include <mutex>
 #include "apr_network_io.h"
 #include "apr_pools.h"
 #include "apr_poll.h"
diff --git a/src/main/cpp/sockethubappender.cpp b/src/main/cpp/sockethubappender.cpp
index b45406a..a88eb42 100644
--- a/src/main/cpp/sockethubappender.cpp
+++ b/src/main/cpp/sockethubappender.cpp
@@ -30,6 +30,7 @@
 #include <log4cxx/helpers/objectoutputstream.h>
 #include <log4cxx/helpers/socketoutputstream.h>
 #include <log4cxx/helpers/exception.h>
+#include <mutex>
 
 using namespace log4cxx;
 using namespace log4cxx::helpers;
diff --git a/src/main/cpp/telnetappender.cpp b/src/main/cpp/telnetappender.cpp
index b821eb8..418aac0 100644
--- a/src/main/cpp/telnetappender.cpp
+++ b/src/main/cpp/telnetappender.cpp
@@ -24,6 +24,7 @@
 #include <apr_strings.h>
 #include <log4cxx/helpers/charsetencoder.h>
 #include <log4cxx/helpers/bytebuffer.h>
+#include <mutex>
 
 using namespace log4cxx;
 using namespace log4cxx::helpers;
diff --git a/src/main/cpp/writerappender.cpp b/src/main/cpp/writerappender.cpp
index 364c280..57996f5 100644
--- a/src/main/cpp/writerappender.cpp
+++ b/src/main/cpp/writerappender.cpp
@@ -19,6 +19,7 @@
 #include <log4cxx/helpers/loglog.h>
 #include <log4cxx/layout.h>
 #include <log4cxx/helpers/stringhelper.h>
+#include <mutex>
 
 using namespace log4cxx;
 using namespace log4cxx::helpers;
diff --git a/src/main/include/log4cxx/log4cxx.h.in b/src/main/include/log4cxx/log4cxx.h.in
index bdb02b9..c048167 100644
--- a/src/main/include/log4cxx/log4cxx.h.in
+++ b/src/main/include/log4cxx/log4cxx.h.in
@@ -43,6 +43,7 @@ typedef int log4cxx_status_t;
 typedef unsigned int log4cxx_uint32_t;
 
 #include "boost-std-configuration.h"
+#include <memory>
 
 #define LOG4CXX_PTR_DEF(T) typedef std::shared_ptr<T> T##Ptr;\
 	typedef std::weak_ptr<T> T##WeakPtr