From: Matthew Leeds Date: Tue, 29 May 2018 01:03:42 +0000 (-0700) Subject: Fix building P2P code against old glib versions X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~23^2~17 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f31087137ed2ce23b8cd886f2ab37b0b27cbfc61;p=ostree.git 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 --- 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"