From f31087137ed2ce23b8cd886f2ab37b0b27cbfc61 Mon Sep 17 00:00:00 2001 From: Matthew Leeds Date: Mon, 28 May 2018 18:03:42 -0700 Subject: [PATCH] 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 --- src/libostree/ostree-bloom-private.h | 2 ++ tests/test-repo-finder-mount.c | 1 + 2 files changed, 3 insertions(+) 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 #include +#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 #include #include +#include #include #include "libostreetest.h"