diff options
Diffstat (limited to 'ext/posix')
-rw-r--r-- | ext/posix/config.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/posix/config.m4 b/ext/posix/config.m4 index 9dfa70d1db..0c4c30561e 100644 --- a/ext/posix/config.m4 +++ b/ext/posix/config.m4 @@ -21,7 +21,7 @@ int main(int argc, char *argv[]) { char buf[64]; - return ttyname_r(0, buf, 64) ? 1 : 0; + return !ttyname_r(0, buf, 64); } ],[ AC_MSG_RESULT([yes]) |