tree-wide: Fix the build with old glib (Ubuntu Trusty etc.)

This regressed with <https://github.com/ostreedev/ostree/pull/1040>
but currently the Travis builds aren't gating.

Closes: #1051
Approved by: jlebon
This commit is contained in:
Colin Walters 2017-08-03 10:55:51 -04:00 committed by Atomic Bot
parent d3897e52e7
commit 4e068f3924
10 changed files with 13 additions and 8 deletions

View File

@ -21,6 +21,7 @@
#pragma once
#include <gio/gio.h>
#include "otutil.h"
G_BEGIN_DECLS

View File

@ -20,9 +20,9 @@
#include "config.h"
#include "otutil.h"
#include "ostree.h"
#include "ostree-deployment-private.h"
#include "libglnx.h"
typedef GObjectClass OstreeDeploymentClass;

View File

@ -25,7 +25,7 @@
#include "config.h"
#include <gio/gio.h>
#include "libglnx.h"
#include "otutil.h"
#ifdef HAVE_LIBARCHIVE
#include <archive.h>
#include <archive_entry.h>

View File

@ -22,8 +22,8 @@
#include "config.h"
#include "ostree.h"
#include "otutil.h"
#include "ostree.h"
/**
* SECTION:ostree-mutable-tree

View File

@ -30,13 +30,13 @@
#include <sys/xattr.h>
#include <glib/gprintf.h>
#include "otutil.h"
#include "ostree.h"
#include "ostree-core-private.h"
#include "ostree-repo-private.h"
#include "ostree-repo-file-enumerator.h"
#include "ostree-checksum-input-stream.h"
#include "ostree-varint.h"
#include "otutil.h"
gboolean
_ostree_repo_ensure_loose_objdir_at (int dfd,

View File

@ -22,6 +22,7 @@
#include "config.h"
#include "otutil.h"
#include "ostree.h"
#include "ostree-core-private.h"
#include "ostree-repo-private.h"

View File

@ -21,10 +21,10 @@
#pragma once
#include <sys/statvfs.h>
#include "otutil.h"
#include "ostree-ref.h"
#include "ostree-repo.h"
#include "ostree-remote-private.h"
#include "otutil.h"
G_BEGIN_DECLS

View File

@ -32,13 +32,13 @@
#include <systemd/sd-journal.h>
#endif
#include "otutil.h"
#include "ostree.h"
#include "ostree-sysroot-private.h"
#include "ostree-sepolicy-private.h"
#include "ostree-deployment-private.h"
#include "ostree-core-private.h"
#include "ostree-linuxfsutil.h"
#include "otutil.h"
#include "libglnx.h"
#define OSTREE_VARRELABEL_ID "da679b08acd34504b789d96f818ea781"

View File

@ -18,6 +18,7 @@
#pragma once
#include "otutil.h"
#include <gio/gio.h>
G_BEGIN_DECLS

View File

@ -20,12 +20,12 @@
#include "config.h"
#include "otutil.h"
#include "ot-main.h"
#include "ot-builtins.h"
#include "ostree-libarchive-private.h"
#include "ostree.h"
#include "ostree-repo-file.h"
#include "ostree-libarchive-private.h"
#include "otutil.h"
#ifdef HAVE_LIBARCHIVE
#include <archive.h>
@ -68,7 +68,9 @@ ostree_builtin_export (int argc, char **argv, GCancellable *cancellable, GError
g_autoptr(GFile) subtree = NULL;
g_autofree char *commit = NULL;
g_autoptr(GVariant) commit_data = NULL;
#ifdef HAVE_LIBARCHIVE
g_autoptr(OtAutoArchiveWrite) a = NULL;
#endif
OstreeRepoExportArchiveOptions opts = { 0, };
context = g_option_context_new ("COMMIT - Stream COMMIT to stdout in tar format");