From 1de00ebae7df03b55cc799ded21ed8fbc174f729 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Thu, 13 Dec 2018 15:29:22 +0100 Subject: [PATCH] shared code --- src/utils/conftree.cpp | 4 ++++ src/utils/execmd.cpp | 4 ++++ src/utils/netcon.cpp | 4 ++++ src/utils/workqueue.h | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/src/utils/conftree.cpp b/src/utils/conftree.cpp index f6bd5da7..1928c4d7 100644 --- a/src/utils/conftree.cpp +++ b/src/utils/conftree.cpp @@ -42,7 +42,11 @@ #include "pathut.h" #include "smallut.h" +#ifdef MDU_INCLUDE_LOG +#include MDU_INCLUDE_LOG +#else #include "log.h" +#endif using namespace std; diff --git a/src/utils/execmd.cpp b/src/utils/execmd.cpp index 482e5b49..f985486e 100644 --- a/src/utils/execmd.cpp +++ b/src/utils/execmd.cpp @@ -54,7 +54,11 @@ #include "netcon.h" #include "closefrom.h" #include "smallut.h" +#ifdef MDU_INCLUDE_LOG +#include MDU_INCLUDE_LOG +#else #include "log.h" +#endif using namespace std; diff --git a/src/utils/netcon.cpp b/src/utils/netcon.cpp index 6c7d4439..1d6cf404 100644 --- a/src/utils/netcon.cpp +++ b/src/utils/netcon.cpp @@ -51,7 +51,11 @@ #include +#ifdef MDU_INCLUDE_LOG +#include MDU_INCLUDE_LOG +#else #include "log.h" +#endif using namespace std; diff --git a/src/utils/workqueue.h b/src/utils/workqueue.h index 216876ac..ff25c8e6 100644 --- a/src/utils/workqueue.h +++ b/src/utils/workqueue.h @@ -28,7 +28,11 @@ #include #include +#ifdef MDU_INCLUDE_LOG +#include MDU_INCLUDE_LOG +#else #include "log.h" +#endif /** * A WorkQueue manages the synchronisation around a queue of work items,