summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-11-08 15:32:27 (GMT)
committerGuido van Rossum <guido@python.org>1999-11-08 15:32:27 (GMT)
commit09cbb019895047eaf159f40429dd8530601c1d01 (patch)
tree9116ca47245337f9d38cb6fc960448d975a1e546 /Modules
parentd4c64ba0f994f124dbc5e8688b4c28358283f5f1 (diff)
downloadcpython-09cbb019895047eaf159f40429dd8530601c1d01.zip
cpython-09cbb019895047eaf159f40429dd8530601c1d01.tar.gz
cpython-09cbb019895047eaf159f40429dd8530601c1d01.tar.bz2
Jack Jansen: Mac has no EINTR.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/timemodule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index a2d0a47..417825d 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -751,7 +751,11 @@ floatsleep(double secs)
Py_BEGIN_ALLOW_THREADS
if (select(0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &t) != 0) {
Py_BLOCK_THREADS
+#ifdef EINTR
if (errno != EINTR) {
+#else
+ if (1) {
+#endif
PyErr_SetFromErrno(PyExc_IOError);
return -1;
}