[sysprof: 2/63] examples: Add missing dependency on glib-2.0



commit dbcf3180968ddc6a1c5a840a27c8622f209a3196
Author: Philip Withnall <withnall endlessm com>
Date:   Tue Jun 30 16:18:51 2020 +0100

    examples: Add missing dependency on glib-2.0
    
    It has previously been implicitly pulled in by libsysprof-capture, but
    that will change in future.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>
    
    Helps: #40

 examples/app.c       | 1 +
 examples/meson.build | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/examples/app.c b/examples/app.c
index c2544cb..abb45aa 100644
--- a/examples/app.c
+++ b/examples/app.c
@@ -11,6 +11,7 @@
 # include <sched.h>
 #endif
 
+#include <glib.h>
 #include <signal.h>
 #include <sysprof-capture.h>
 #include <unistd.h>
diff --git a/examples/meson.build b/examples/meson.build
index 124ac24..71a036a 100644
--- a/examples/meson.build
+++ b/examples/meson.build
@@ -1,3 +1,3 @@
 app = executable('example-app', 'app.c',
-  dependencies: [libsysprof_capture_dep],
+  dependencies: [dependency('glib-2.0'), libsysprof_capture_dep],
 )


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