From 3f4b61f3def02228222be07d326af848a044f35c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Wed, 31 Jan 2024 10:49:42 +0100 Subject: [PATCH] build: Include for isatty() A compilation fails on some systems with: /home/rpm/rpmbuild/BUILD/libdnf5-cli/output/advisorylist.cpp: In function 'libscols_table* libdnf5::cli::output::create_advisorylist_table(std::string)': /home/rpm/rpmbuild/BUILD/libdnf5-cli/output/advisorylist.cpp:33:9: error: 'isatty' was not declared in this scope 33 | if (isatty(1)) { | ^~~~~~ The cause is a missing "#include " in the compilation unit. This bug was introduced in commit d8d9c631faf259d0d4d88671fe2029749a081f66 (Add output formatting for advisory list and info into libdnf-cli). Fixes: #1168 --- libdnf5-cli/output/advisorylist.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libdnf5-cli/output/advisorylist.cpp b/libdnf5-cli/output/advisorylist.cpp index c0448c0a6..27884c7b9 100644 --- a/libdnf5-cli/output/advisorylist.cpp +++ b/libdnf5-cli/output/advisorylist.cpp @@ -22,6 +22,7 @@ along with libdnf. If not, see . #include "utils/string.hpp" #include +#include namespace libdnf5::cli::output {