summaryrefslogtreecommitdiffstats
path: root/Modules/timemodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-05-10 07:36:56 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-05-10 07:36:56 (GMT)
commita94568a7535de60f1144e4eea0d027b87017a4b4 (patch)
tree5a8f696ca440a296b18521be17920b48f2021e4c /Modules/timemodule.c
parent5467d4c0e31e9db305a4899a44d7978f83e96649 (diff)
downloadcpython-a94568a7535de60f1144e4eea0d027b87017a4b4.zip
cpython-a94568a7535de60f1144e4eea0d027b87017a4b4.tar.gz
cpython-a94568a7535de60f1144e4eea0d027b87017a4b4.tar.bz2
Patch #734231: Update RiscOS support. In particular, correct
riscospath.extsep, and use os.extsep throughout.
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r--Modules/timemodule.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index 2e28d95..ce25281 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -78,6 +78,10 @@ static long main_thread;
#include <kernel/OS.h>
#endif
+#ifdef RISCOS
+extern int riscos_sleep(double);
+#endif
+
/* Forward declarations */
static int floatsleep(double);
static double floattime(void);
@@ -944,7 +948,7 @@ floatsleep(double secs)
return 0;
Py_BEGIN_ALLOW_THREADS
/* This sleep *CAN BE* interrupted. */
- if ( sleep(secs) )
+ if ( riscos_sleep(secs) )
return -1;
Py_END_ALLOW_THREADS
#elif defined(PLAN9)