summaryrefslogtreecommitdiff
path: root/libvaladoc/errorreporter.vala
diff options
context:
space:
mode:
Diffstat (limited to 'libvaladoc/errorreporter.vala')
-rw-r--r--libvaladoc/errorreporter.vala7
1 files changed, 5 insertions, 2 deletions
diff --git a/libvaladoc/errorreporter.vala b/libvaladoc/errorreporter.vala
index 68b09a8ef..d63ed6ecd 100644
--- a/libvaladoc/errorreporter.vala
+++ b/libvaladoc/errorreporter.vala
@@ -240,11 +240,14 @@ public class Valadoc.ErrorReporter : Object {
void* _func;
module.symbol ("isatty", out _func);
if (_func == null) {
- return false;
+ module.symbol ("_isatty", out _func);
+ if (_func == null) {
+ return false;
+ }
}
AttyFunc? func = (AttyFunc) _func;
- return func (fd) == 1;
+ return func (fd) > 0;
}
[PrintfFormat]