diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2009-07-17 06:24:33 (GMT) |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2009-07-17 06:24:33 (GMT) |
commit | aee170aaed7010441ad992222881e56048877cf1 (patch) | |
tree | a566ea8c40d7eb4b4dc52594b71f6370f2e2c72b /configure.in | |
parent | 7b0c1c76cd1d35dbea240fd89c177a6995361d99 (diff) | |
download | cpython-aee170aaed7010441ad992222881e56048877cf1.zip cpython-aee170aaed7010441ad992222881e56048877cf1.tar.gz cpython-aee170aaed7010441ad992222881e56048877cf1.tar.bz2 |
Merged revisions 74039 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r74039 | alexandre.vassalotti | 2009-07-17 02:17:33 -0400 (Fri, 17 Jul 2009) | 2 lines
Clean up the test case for broken poll().
........
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/configure.in b/configure.in index ef2549e..17b89b0 100644 --- a/configure.in +++ b/configure.in @@ -3550,27 +3550,21 @@ AC_CACHE_VAL(ac_cv_broken_poll, AC_TRY_RUN([ #include <poll.h> -int main (void) - { +int main() +{ struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; - - close (42); + int poll_test; - int poll_test = poll (&poll_struct, 1, 0); + close (42); + poll_test = poll(&poll_struct, 1, 0); if (poll_test < 0) - { - exit(0); - } + return 0; else if (poll_test == 0 && poll_struct.revents != POLLNVAL) - { - exit(0); - } + return 0; else - { - exit(1); - } - } + return 1; +} ], ac_cv_broken_poll=yes, ac_cv_broken_poll=no, |