summaryrefslogtreecommitdiffstats
path: root/Modules/timemodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-03-02 06:34:14 (GMT)
committerGuido van Rossum <guido@python.org>2001-03-02 06:34:14 (GMT)
commit48a680c097f0e53a4cdcd61fbed35e1b6c1de388 (patch)
treecc051327ef0eed1c29775ccc3ab39059eb943a19 /Modules/timemodule.c
parent1ca8bb374eeee89d5f1a3789d804f49ec07836ee (diff)
downloadcpython-48a680c097f0e53a4cdcd61fbed35e1b6c1de388.zip
cpython-48a680c097f0e53a4cdcd61fbed35e1b6c1de388.tar.gz
cpython-48a680c097f0e53a4cdcd61fbed35e1b6c1de388.tar.bz2
RISCOS changes by dschwertberger.
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 d4b2f37..a58f155 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -16,7 +16,9 @@
#define GUSI_TO_MSL_EPOCH (4*365*24*60*60)
#endif /* USE_GUSI2 */
#else
+#ifndef RISCOS
#include <sys/types.h>
+#endif /* RISCOS */
#endif
#ifdef QUICKWIN
@@ -38,7 +40,7 @@ extern int ftime(struct timeb *);
#include <i86.h>
#else
#ifdef MS_WINDOWS
-#include <windows.h>
+include <windows.h>
#ifdef MS_WIN16
/* These overrides not needed for Win32 */
#define timezone _timezone
@@ -747,7 +749,9 @@ floatsleep(double secs)
#if defined(__WATCOMC__) && !defined(__QNX__)
/* XXX Can't interrupt this sleep */
Py_BEGIN_ALLOW_THREADS
+#ifndef RISCOS
delay((int)(secs * 1000 + 0.5)); /* delay() uses milliseconds */
+#endif
Py_END_ALLOW_THREADS
#else /* !__WATCOMC__ || __QNX__ */
#ifdef MSDOS