[rtems-tools commit] record: Guard config.h include

Sebastian Huber sebh at rtems.org
Thu Mar 19 06:38:42 UTC 2020


Module:    rtems-tools
Branch:    master
Commit:    4aa0d5f42fc5baba54c5723d207f78d1074f4445
Changeset: http://git.rtems.org/rtems-tools/commit/?id=4aa0d5f42fc5baba54c5723d207f78d1074f4445

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Mar 16 11:29:45 2020 +0100

record: Guard config.h include

Update #3904.

---

 trace/record/record-client-base.cc | 4 ++++
 trace/record/record-main-lttng.cc  | 2 ++
 trace/wscript                      | 3 ++-
 3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/trace/record/record-client-base.cc b/trace/record/record-client-base.cc
index 8fe6edb..04c0ae8 100644
--- a/trace/record/record-client-base.cc
+++ b/trace/record/record-client-base.cc
@@ -25,6 +25,10 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "client.h"
 
 #ifdef _WIN32
diff --git a/trace/record/record-main-lttng.cc b/trace/record/record-main-lttng.cc
index a28de8e..2a4f509 100644
--- a/trace/record/record-main-lttng.cc
+++ b/trace/record/record-main-lttng.cc
@@ -26,7 +26,9 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
+#ifdef HAVE_CONFIG_H
 #include "config.h"
+#endif
 
 #include "client.h"
 
diff --git a/trace/wscript b/trace/wscript
index 187ee82..38220a5 100644
--- a/trace/wscript
+++ b/trace/wscript
@@ -69,7 +69,8 @@ def build(bld):
     #
     # The list of defines
     #
-    defines = ['RTEMS_VERSION=\"%s\"' % (bld.env.RTEMS_VERSION),
+    defines = ['HAVE_CONFIG_H',
+               'RTEMS_VERSION=\"%s\"' % (bld.env.RTEMS_VERSION),
                'RTEMS_RELEASE=\"%s\"' % (bld.env.RTEMS_RELEASE)]
 
     #



More information about the vc mailing list