diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-05-10 07:36:56 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-05-10 07:36:56 +0000 |
commit | 9669cebac002cf0f8ff8cd0a3b82418592a08965 (patch) | |
tree | 1d64f4c6340287dea2e5e5c30152bbc401091311 /Modules/timemodule.c | |
parent | c805192fd22bf6de009203800f0c386efe416933 (diff) | |
download | cpython-9669cebac002cf0f8ff8cd0a3b82418592a08965.tar.gz |
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.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c index 2e28d95f65..ce252811ec 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) |