[sysprof] libsysprof-capture: add missing config.h includes



commit 55f587988b8f5dd748e974374d9e7ff6ec3dc938
Author: Christian Hergert <chergert redhat com>
Date:   Wed May 8 11:04:48 2019 -0700

    libsysprof-capture: add missing config.h includes
    
    This is needed for symbol visibility.

 src/libsysprof-capture/sp-address.c           | 2 ++
 src/libsysprof-capture/sp-capture-condition.c | 1 -
 src/libsysprof-capture/sp-capture-reader.c    | 4 ++++
 src/libsysprof-capture/sp-capture-util.c      | 4 ++++
 src/libsysprof-capture/sp-capture-writer.c    | 4 ++++
 src/libsysprof-capture/sp-clock.c             | 4 ++++
 src/libsysprof-capture/sp-platform.c          | 2 ++
 7 files changed, 20 insertions(+), 1 deletion(-)
---
diff --git a/src/libsysprof-capture/sp-address.c b/src/libsysprof-capture/sp-address.c
index bf9ba65..0e9d4b9 100644
--- a/src/libsysprof-capture/sp-address.c
+++ b/src/libsysprof-capture/sp-address.c
@@ -18,6 +18,8 @@
  * SPDX-License-Identifier: GPL-3.0-or-later
  */
 
+#include "config.h"
+
 #ifdef __linux__
 # include <linux/perf_event.h>
 #else
diff --git a/src/libsysprof-capture/sp-capture-condition.c b/src/libsysprof-capture/sp-capture-condition.c
index c06e320..9cac082 100644
--- a/src/libsysprof-capture/sp-capture-condition.c
+++ b/src/libsysprof-capture/sp-capture-condition.c
@@ -18,7 +18,6 @@
  * SPDX-License-Identifier: GPL-3.0-or-later
  */
 
-
 #define G_LOG_DOMAIN "sp-capture-condition"
 
 #include "config.h"
diff --git a/src/libsysprof-capture/sp-capture-reader.c b/src/libsysprof-capture/sp-capture-reader.c
index 252a2d9..92c88b0 100644
--- a/src/libsysprof-capture/sp-capture-reader.c
+++ b/src/libsysprof-capture/sp-capture-reader.c
@@ -18,6 +18,10 @@
  * SPDX-License-Identifier: GPL-3.0-or-later
  */
 
+#define G_LOG_DOMAIN "sp-capture-reader"
+
+#include "config.h"
+
 #include <errno.h>
 #include <fcntl.h>
 #include <string.h>
diff --git a/src/libsysprof-capture/sp-capture-util.c b/src/libsysprof-capture/sp-capture-util.c
index 7d58603..ee02f49 100644
--- a/src/libsysprof-capture/sp-capture-util.c
+++ b/src/libsysprof-capture/sp-capture-util.c
@@ -18,6 +18,10 @@
  * SPDX-License-Identifier: GPL-3.0-or-later
  */
 
+#define G_LOG_DOMAIN "sp-capture-util"
+
+#include "config.h"
+
 #include <errno.h>
 #include <glib.h>
 
diff --git a/src/libsysprof-capture/sp-capture-writer.c b/src/libsysprof-capture/sp-capture-writer.c
index a4f7ec3..2d0513d 100644
--- a/src/libsysprof-capture/sp-capture-writer.c
+++ b/src/libsysprof-capture/sp-capture-writer.c
@@ -18,6 +18,10 @@
  * SPDX-License-Identifier: GPL-3.0-or-later
  */
 
+#define G_LOG_DOMAIN "sp-capture-writer"
+
+#include "config.h"
+
 #ifndef _GNU_SOURCE
 # define _GNU_SOURCE
 #endif
diff --git a/src/libsysprof-capture/sp-clock.c b/src/libsysprof-capture/sp-clock.c
index 24e3793..d65e136 100644
--- a/src/libsysprof-capture/sp-clock.c
+++ b/src/libsysprof-capture/sp-clock.c
@@ -18,6 +18,10 @@
  * SPDX-License-Identifier: GPL-3.0-or-later
  */
 
+#define G_LOG_DOMAIN "sp-clock"
+
+#include "config.h"
+
 #include "sp-clock.h"
 
 gint sp_clock = -1;
diff --git a/src/libsysprof-capture/sp-platform.c b/src/libsysprof-capture/sp-platform.c
index f105a01..176f74b 100644
--- a/src/libsysprof-capture/sp-platform.c
+++ b/src/libsysprof-capture/sp-platform.c
@@ -18,6 +18,8 @@
  * SPDX-License-Identifier: GPL-3.0-or-later
  */
 
+#define G_LOG_DOMAIN "sp-platform"
+
 #include "config.h"
 
 #include <glib.h>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]