[sysprof] build: fix build on Debian 9



commit 19c27911989583785fb2f680be8c76940206c42e
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jun 11 09:48:41 2019 -0700

    build: fix build on Debian 9

 src/libsysprof/sysprof-backport-autocleanups.h | 1 +
 src/libsysprof/sysprof-battery-source.c        | 1 +
 src/libsysprof/sysprof-local-profiler.c        | 1 +
 src/libsysprof/sysprof-symbol-map.c            | 2 ++
 4 files changed, 5 insertions(+)
---
diff --git a/src/libsysprof/sysprof-backport-autocleanups.h b/src/libsysprof/sysprof-backport-autocleanups.h
index 7b24024..f686ca2 100644
--- a/src/libsysprof/sysprof-backport-autocleanups.h
+++ b/src/libsysprof/sysprof-backport-autocleanups.h
@@ -11,6 +11,7 @@
    G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitAuthority, g_object_unref)
    G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitAuthorizationResult, g_object_unref)
    G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitSubject, g_object_unref)
+   G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitDetails, g_object_unref)
 # endif
 #endif
 
diff --git a/src/libsysprof/sysprof-battery-source.c b/src/libsysprof/sysprof-battery-source.c
index 82824da..9d74eca 100644
--- a/src/libsysprof/sysprof-battery-source.c
+++ b/src/libsysprof/sysprof-battery-source.c
@@ -26,6 +26,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 
+#include "sysprof-backport-autocleanups.h"
 #include "sysprof-battery-source.h"
 #include "sysprof-helpers.h"
 
diff --git a/src/libsysprof/sysprof-local-profiler.c b/src/libsysprof/sysprof-local-profiler.c
index 8ffe5f7..25e9592 100644
--- a/src/libsysprof/sysprof-local-profiler.c
+++ b/src/libsysprof/sysprof-local-profiler.c
@@ -26,6 +26,7 @@
 #include <gio/gio.h>
 #include <glib.h>
 #include <glib/gstdio.h>
+#include <stdlib.h>
 #include <sysprof-capture.h>
 #include <unistd.h>
 
diff --git a/src/libsysprof/sysprof-symbol-map.c b/src/libsysprof/sysprof-symbol-map.c
index 03d655d..d0b0ebc 100644
--- a/src/libsysprof/sysprof-symbol-map.c
+++ b/src/libsysprof/sysprof-symbol-map.c
@@ -22,6 +22,8 @@
 
 #include "config.h"
 
+#include <stdlib.h>
+#include <string.h>
 #include <unistd.h>
 
 #include "sysprof-map-lookaside.h"


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