Skip to content

Commit

Permalink
lib: Fix building against old glib versions
Browse files Browse the repository at this point in the history
This commit includes libglnx.h in ostree-autocleanups.h, so we get the
g_autoptr backports wherever they're needed. Also, remove the "#include
libglnx.h" lines that are no longer needed.
  • Loading branch information
mwleeds committed May 31, 2018
1 parent eeda9ea commit 6ec1b66
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions src/libostree/ostree-autocleanups.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#pragma once

#include <ostree.h>
#include <libglnx.h>

G_BEGIN_DECLS

Expand Down
2 changes: 0 additions & 2 deletions src/libostree/ostree-bloom-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
#include <glib.h>
#include <glib-object.h>

#include "libglnx.h"

G_BEGIN_DECLS

/**
Expand Down
1 change: 0 additions & 1 deletion tests/test-repo-finder-mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include <gio/gio.h>
#include <glib.h>
#include <glib-object.h>
#include <libglnx.h>
#include <locale.h>

#include "libostreetest.h"
Expand Down

0 comments on commit 6ec1b66

Please sign in to comment.