From b13ead1c5bacc7b8bfb12fb858f8699fac3bd7bb Mon Sep 17 00:00:00 2001 From: Krisztian Litkey Date: Fri, 10 Feb 2017 14:14:27 +0200 Subject: [PATCH] libostree: added empty ot_cleanup_{read,write}_archive macros. Added empty macros for ot_cleanup_{read,write}_archive to fix errors when compiling without libarchive. Signed-off-by: Krisztian Litkey Closes: #677 Approved by: cgwalters --- src/libostree/ostree-libarchive-private.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libostree/ostree-libarchive-private.h b/src/libostree/ostree-libarchive-private.h index 177c6568c2..865a4b8d86 100644 --- a/src/libostree/ostree-libarchive-private.h +++ b/src/libostree/ostree-libarchive-private.h @@ -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