From 55f587988b8f5dd748e974374d9e7ff6ec3dc938 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Wed, 8 May 2019 11:04:48 -0700 Subject: [PATCH] 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 bf9ba65d..0e9d4b9d 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 #else diff --git a/src/libsysprof-capture/sp-capture-condition.c b/src/libsysprof-capture/sp-capture-condition.c index c06e320f..9cac0827 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 252a2d91..92c88b08 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 #include #include diff --git a/src/libsysprof-capture/sp-capture-util.c b/src/libsysprof-capture/sp-capture-util.c index 7d586034..ee02f491 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 #include diff --git a/src/libsysprof-capture/sp-capture-writer.c b/src/libsysprof-capture/sp-capture-writer.c index a4f7ec39..2d0513d4 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 24e3793f..d65e1362 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 f105a011..176f74b2 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