From 960f030b4163e71c63b251250659718655edcac1 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Sun, 21 Dec 2014 21:54:00 -0600 Subject: Fix twrpTar building - ifdef around set_metadata - Set tags as optional Change-Id: I438e370c3bf6b590dc80ba372724c47cead6cbe5 --- twrpTar.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'twrpTar.cpp') diff --git a/twrpTar.cpp b/twrpTar.cpp index 968b6b9e7..7f057df98 100644 --- a/twrpTar.cpp +++ b/twrpTar.cpp @@ -44,6 +44,9 @@ extern "C" { #ifndef BUILD_TWRPTAR_MAIN #include "data.hpp" #include "infomanager.hpp" +extern "C" { + #include "set_metadata.h" +} #endif //ndef BUILD_TWRPTAR_MAIN using namespace std; @@ -1243,7 +1246,9 @@ int twrpTar::closeTar() { LOGERR("Backup file size for '%s' is 0 bytes.\n", tarfn.c_str()); return -1; } +#ifndef BUILD_TWRPTAR_MAIN tw_set_default_metadata(tarfn.c_str()); +#endif return 0; } -- cgit v1.2.3