From 39b08858f676f0251898ffc7601ad216bb87ae21 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?D=C4=81vis=20Mos=C4=81ns?= <davispuh@gmail.com>
Date: Tue, 11 Oct 2016 22:46:10 +0300
Subject: cmSystemTools: Flush output buffer for list_item_verbose

When `std::cout` and `FILE *stdout` are used at same time need to
explicitly flush otherwise they can be out of sync.
---
 Source/cmSystemTools.cxx | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index d800ef8..0a3a1ab 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -1499,6 +1499,7 @@ void list_item_verbose(FILE* out, struct archive_entry* entry)
   {
     fprintf(out, " -> %s", archive_entry_symlink(entry));
   }
+  fflush(out);
 }
 
 long copy_data(struct archive* ar, struct archive* aw)
-- 
cgit v0.12