Skip to content

Commit

Permalink
libostree: added empty ot_cleanup_{read,write}_archive macros.
Browse files Browse the repository at this point in the history
Added empty macros for ot_cleanup_{read,write}_archive to fix
errors when compiling without libarchive.

Signed-off-by: Krisztian Litkey <[email protected]>

Closes: #677
Approved by: cgwalters
  • Loading branch information
klihub authored and rh-atomic-bot committed Feb 10, 2017
1 parent 40a1d32 commit b13ead1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libostree/ostree-libarchive-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ GLNX_DEFINE_CLEANUP_FUNCTION (void *, flatpak_local_free_write_archive, archive_

GLNX_DEFINE_CLEANUP_FUNCTION (void *, flatpak_local_free_read_archive, archive_read_free)
#define ot_cleanup_read_archive __attribute__((cleanup (flatpak_local_free_read_archive)))
#else
#define ot_cleanup_write_archive
#define ot_cleanup_read_archive
#endif

G_END_DECLS

0 comments on commit b13ead1

Please sign in to comment.