[sysprof: 6/63] libsysprof: Add missing preload dependencies on glib-2.0
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof: 6/63] libsysprof: Add missing preload dependencies on glib-2.0
- Date: Sat, 4 Jul 2020 18:29:50 +0000 (UTC)
commit 4b6855a2ab14d5306984f03de9bae510ed98ae2b
Author: Philip Withnall <withnall endlessm com>
Date: Tue Jun 30 16:24:54 2020 +0100
libsysprof: Add missing preload dependencies on glib-2.0
It has previously been implicitly pulled in by libsysprof-capture, but
that will change in future.
Correspondingly, add some missing `glib.h` includes.
Signed-off-by: Philip Withnall <withnall endlessm com>
Helps: #40
src/libsysprof/preload/meson.build | 1 +
src/libsysprof/preload/sysprof-memory-collector.c | 1 +
src/libsysprof/preload/sysprof-speedtrack-collector.c | 1 +
src/libsysprof/sysprof-kernel-symbol.h | 2 ++
src/libsysprof/sysprof-map-lookaside.c | 2 ++
src/libsysprof/sysprof-map-lookaside.h | 2 ++
src/libsysprof/sysprof-source.h | 1 +
7 files changed, 10 insertions(+)
---
diff --git a/src/libsysprof/preload/meson.build b/src/libsysprof/preload/meson.build
index dd237a3..6906ec7 100644
--- a/src/libsysprof/preload/meson.build
+++ b/src/libsysprof/preload/meson.build
@@ -1,6 +1,7 @@
libdl_dep = cc.find_library('dl', required: false)
preload_deps = [
+ dependency('glib-2.0'),
libsysprof_capture_dep,
libdl_dep,
]
diff --git a/src/libsysprof/preload/sysprof-memory-collector.c
b/src/libsysprof/preload/sysprof-memory-collector.c
index 30591c8..dd851ac 100644
--- a/src/libsysprof/preload/sysprof-memory-collector.c
+++ b/src/libsysprof/preload/sysprof-memory-collector.c
@@ -23,6 +23,7 @@
#include "config.h"
#include <dlfcn.h>
+#include <glib.h>
#include <sched.h>
#include <stdlib.h>
#include <sys/syscall.h>
diff --git a/src/libsysprof/preload/sysprof-speedtrack-collector.c
b/src/libsysprof/preload/sysprof-speedtrack-collector.c
index 6b2b08c..223dea9 100644
--- a/src/libsysprof/preload/sysprof-speedtrack-collector.c
+++ b/src/libsysprof/preload/sysprof-speedtrack-collector.c
@@ -24,6 +24,7 @@
#include <dlfcn.h>
#include <fcntl.h>
+#include <glib.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <sys/stat.h>
diff --git a/src/libsysprof/sysprof-kernel-symbol.h b/src/libsysprof/sysprof-kernel-symbol.h
index 7ef72f0..27c4790 100644
--- a/src/libsysprof/sysprof-kernel-symbol.h
+++ b/src/libsysprof/sysprof-kernel-symbol.h
@@ -24,6 +24,8 @@
# error "Only <sysprof.h> can be included directly."
#endif
+#include <glib.h>
+
#include "sysprof-capture-types.h"
G_BEGIN_DECLS
diff --git a/src/libsysprof/sysprof-map-lookaside.c b/src/libsysprof/sysprof-map-lookaside.c
index b1532e2..277e7f6 100644
--- a/src/libsysprof/sysprof-map-lookaside.c
+++ b/src/libsysprof/sysprof-map-lookaside.c
@@ -20,6 +20,8 @@
#include "config.h"
+#include <glib.h>
+
#include "sysprof-map-lookaside.h"
struct _SysprofMapLookaside
diff --git a/src/libsysprof/sysprof-map-lookaside.h b/src/libsysprof/sysprof-map-lookaside.h
index e517a60..ef06856 100644
--- a/src/libsysprof/sysprof-map-lookaside.h
+++ b/src/libsysprof/sysprof-map-lookaside.h
@@ -20,6 +20,8 @@
#pragma once
+#include <glib.h>
+
#include "sysprof-capture-types.h"
G_BEGIN_DECLS
diff --git a/src/libsysprof/sysprof-source.h b/src/libsysprof/sysprof-source.h
index 62e2f53..412aa765 100644
--- a/src/libsysprof/sysprof-source.h
+++ b/src/libsysprof/sysprof-source.h
@@ -24,6 +24,7 @@
# error "Only <sysprof.h> can be included directly."
#endif
+#include <glib.h>
#include <gio/gio.h>
#include <sysprof-capture.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]