Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Include <unistd.h> 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 <unistd.h>" in the compilation unit. This bug was introduced in commit d8d9c63 (Add output formatting for advisory list and info into libdnf-cli). Fixes: #1168
- Loading branch information