summaryrefslogtreecommitdiffstats
path: root/Modules/timemodule.c
diff options
context:
space:
mode:
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>2002-03-03 02:59:16 (GMT)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>2002-03-03 02:59:16 (GMT)
commit7bf6833e178696b9815fd4e4c6d1cecc8b46bdd2 (patch)
tree9da72d3e52c043d4fc5437967ddb9a0f0226b6e9 /Modules/timemodule.c
parent38b504e9e3ef3049815779e8c18b62f690ec4ed2 (diff)
downloadcpython-7bf6833e178696b9815fd4e4c6d1cecc8b46bdd2.zip
cpython-7bf6833e178696b9815fd4e4c6d1cecc8b46bdd2.tar.gz
cpython-7bf6833e178696b9815fd4e4c6d1cecc8b46bdd2.tar.bz2
OS/2 EMX port changes (Modules part of patch #450267):
Modules/ _hotshot.c dbmmodule.c fcntlmodule.c main.c pwdmodule.c readline.c selectmodule.c signalmodule.c termios.c timemodule.c unicodedata.c
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r--Modules/timemodule.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index 6647ecc..5d7fa51 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -54,6 +54,12 @@ extern int ftime(struct timeb *);
#undef HAVE_CLOCK /* We have our own version down below */
#endif /* MS_WIN32 && !MS_WIN64 */
+#if defined(PYOS_OS2)
+#define INCL_DOS
+#define INCL_ERRORS
+#include <os2.h>
+#endif
+
#if defined(PYCC_VACPP)
#include <sys/time.h>
#endif
@@ -752,7 +758,7 @@ static int
floatsleep(double secs)
{
/* XXX Should test for MS_WIN32 first! */
-#if defined(HAVE_SELECT) && !defined(__BEOS__)
+#if defined(HAVE_SELECT) && !defined(__BEOS__) && !defined(__EMX__)
struct timeval t;
double frac;
frac = fmod(secs, 1.0);