You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by sw...@apache.org on 2022/06/19 06:37:29 UTC
[logging-log4cxx] branch master updated: Fix compilation error in a static build
This is an automated email from the ASF dual-hosted git repository.
swebb2066 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git
The following commit(s) were added to refs/heads/master by this push:
new abcf8112 Fix compilation error in a static build
abcf8112 is described below
commit abcf8112d81fc90e74b80de4cc09164ae8f68c69
Author: Stephen Webb <st...@sabreautonomous.com.au>
AuthorDate: Sun Jun 19 16:37:22 2022 +1000
Fix compilation error in a static build
---
src/main/cpp/threadutility.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/main/cpp/threadutility.cpp b/src/main/cpp/threadutility.cpp
index b57ab66b..c14c12fd 100644
--- a/src/main/cpp/threadutility.cpp
+++ b/src/main/cpp/threadutility.cpp
@@ -16,8 +16,11 @@
*/
#include "log4cxx/helpers/threadutility.h"
-#include "log4cxx/private/log4cxx_private.h"
#include "log4cxx/helpers/loglog.h"
+#if !defined(LOG4CXX)
+ #define LOG4CXX 1
+#endif
+#include "log4cxx/private/log4cxx_private.h"
#include <signal.h>
#include <mutex>