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
This commit is contained in:
Philip Withnall
2020-06-30 16:24:54 +01:00
parent d1a8dc40f5
commit 4b6855a2ab
7 changed files with 10 additions and 0 deletions

View File

@ -1,6 +1,7 @@
libdl_dep = cc.find_library('dl', required: false)
preload_deps = [
dependency('glib-2.0'),
libsysprof_capture_dep,
libdl_dep,
]

View File

@ -23,6 +23,7 @@
#include "config.h"
#include <dlfcn.h>
#include <glib.h>
#include <sched.h>
#include <stdlib.h>
#include <sys/syscall.h>

View File

@ -24,6 +24,7 @@
#include <dlfcn.h>
#include <fcntl.h>
#include <glib.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <sys/stat.h>

View File

@ -24,6 +24,8 @@
# error "Only <sysprof.h> can be included directly."
#endif
#include <glib.h>
#include "sysprof-capture-types.h"
G_BEGIN_DECLS

View File

@ -20,6 +20,8 @@
#include "config.h"
#include <glib.h>
#include "sysprof-map-lookaside.h"
struct _SysprofMapLookaside

View File

@ -20,6 +20,8 @@
#pragma once
#include <glib.h>
#include "sysprof-capture-types.h"
G_BEGIN_DECLS

View File

@ -24,6 +24,7 @@
# error "Only <sysprof.h> can be included directly."
#endif
#include <glib.h>
#include <gio/gio.h>
#include <sysprof-capture.h>