From 6ea21696a3373d32ea759a794c9673075539e7c4 Mon Sep 17 00:00:00 2001 From: Matthew Leeds Date: Wed, 6 Jun 2018 13:41:37 -0700 Subject: [PATCH] Fix building against old glib versions We need to include libglnx.h in places where ostree-autocleanups.h is included, so that we get backports of G_DEFINE_AUTOPTR_CLEANUP_FUNC and friends. Closes: #1615 Approved by: jlebon --- src/libostree/ostree-repo-finder-avahi-parser.c | 1 + src/libostree/ostree-repo-finder-avahi.c | 1 + src/libostree/ostree-repo-finder.c | 1 + tests/repo-finder-mount.c | 1 + 4 files changed, 4 insertions(+) diff --git a/src/libostree/ostree-repo-finder-avahi-parser.c b/src/libostree/ostree-repo-finder-avahi-parser.c index 0ca8253f..afc9790c 100644 --- a/src/libostree/ostree-repo-finder-avahi-parser.c +++ b/src/libostree/ostree-repo-finder-avahi-parser.c @@ -29,6 +29,7 @@ #include #include #include +#include #include #include "ostree-autocleanups.h" diff --git a/src/libostree/ostree-repo-finder-avahi.c b/src/libostree/ostree-repo-finder-avahi.c index e48b60f4..223d8f0a 100644 --- a/src/libostree/ostree-repo-finder-avahi.c +++ b/src/libostree/ostree-repo-finder-avahi.c @@ -43,6 +43,7 @@ #include #include #include +#include #include "ostree-autocleanups.h" #include "ostree-repo-finder.h" diff --git a/src/libostree/ostree-repo-finder.c b/src/libostree/ostree-repo-finder.c index 32407ff5..ed44ddca 100644 --- a/src/libostree/ostree-repo-finder.c +++ b/src/libostree/ostree-repo-finder.c @@ -27,6 +27,7 @@ #include #include #include +#include #include "ostree-autocleanups.h" #include "ostree-core.h" diff --git a/tests/repo-finder-mount.c b/tests/repo-finder-mount.c index be0e87e3..2cb1d230 100644 --- a/tests/repo-finder-mount.c +++ b/tests/repo-finder-mount.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include "ostree-autocleanups.h"