Skip to content

Commit da2491b

Browse files
added guarded include <sys/termios.h> on illumos and solaris (#1282)
1 parent a9ddb31 commit da2491b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/ftxui/screen/terminal.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
#include <sys/ioctl.h> // for winsize, ioctl, TIOCGWINSZ
2323
#include <unistd.h> // for STDOUT_FILENO
2424
#endif
25+
#if defined(__sun) || defined(__illumos__)
26+
#include <sys/termios.h> // for winsize on illumos
27+
#endif
2528

2629
namespace ftxui {
2730

@@ -108,7 +111,8 @@ struct Quirks::Impl {
108111

109112
Quirks::Quirks() : impl_(std::make_unique<Impl>()) {}
110113
Quirks::~Quirks() = default;
111-
Quirks::Quirks(const Quirks& other) : impl_(std::make_unique<Impl>(*other.impl_)) {}
114+
Quirks::Quirks(const Quirks& other)
115+
: impl_(std::make_unique<Impl>(*other.impl_)) {}
112116
Quirks& Quirks::operator=(const Quirks& other) {
113117
if (this != &other) {
114118
*impl_ = *other.impl_;

0 commit comments

Comments
 (0)