diff options
Diffstat (limited to 'host/lib/include/uhdlib/utils/isatty.hpp')
-rw-r--r-- | host/lib/include/uhdlib/utils/isatty.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/host/lib/include/uhdlib/utils/isatty.hpp b/host/lib/include/uhdlib/utils/isatty.hpp index 1ae2c8de4..cb8d07afb 100644 --- a/host/lib/include/uhdlib/utils/isatty.hpp +++ b/host/lib/include/uhdlib/utils/isatty.hpp @@ -8,6 +8,7 @@ #define INCLUDED_UHDLIB_UTILS_ISATTY_HPP #include <uhd/config.hpp> +#include <uhdlib/utils/narrow.hpp> namespace uhd { @@ -23,7 +24,7 @@ namespace uhd { */ bool is_a_tty(const int fd) { - return _isatty(fd); + return uhd::narrow_cast<bool>(_isatty(fd)); } #elif _POSIX_C_SOURCE >= _200112L |