summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Leeds <matthew.leeds@endlessm.com>2018-05-28 18:03:42 -0700
committerAtomic Bot <atomic-devel@projectatomic.io>2018-05-30 14:19:25 +0000
commitf31087137ed2ce23b8cd886f2ab37b0b27cbfc61 (patch)
treefdfe773b2d918972b79ced4ef6e15cfcbddb0f22
parent6ec19a6953aae3808f29fc9d1de479b9d3b79ddd (diff)
downloadostree-f31087137ed2ce23b8cd886f2ab37b0b27cbfc61.tar.gz
Fix building P2P code against old glib versions
When building the OstreeBloom code against old versions of glib, we have to have the libglnx headers included so that it defines G_DEFINE_AUTOPTR_CLEANUP_FUNC and friends for us. This is similarly true for test-repo-finder-mount.c which indirectly includes ostree-autocleanups.h. Closes: #1605 Approved by: cgwalters
-rw-r--r--src/libostree/ostree-bloom-private.h2
-rw-r--r--tests/test-repo-finder-mount.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/libostree/ostree-bloom-private.h b/src/libostree/ostree-bloom-private.h
index ed7ab359..1c5acb8f 100644
--- a/src/libostree/ostree-bloom-private.h
+++ b/src/libostree/ostree-bloom-private.h
@@ -28,6 +28,8 @@
#include <glib.h>
#include <glib-object.h>
+#include "libglnx.h"
+
G_BEGIN_DECLS
/**
diff --git a/tests/test-repo-finder-mount.c b/tests/test-repo-finder-mount.c
index 948a3245..55eb47fb 100644
--- a/tests/test-repo-finder-mount.c
+++ b/tests/test-repo-finder-mount.c
@@ -27,6 +27,7 @@
#include <gio/gio.h>
#include <glib.h>
#include <glib-object.h>
+#include <libglnx.h>
#include <locale.h>
#include "libostreetest.h"