summaryrefslogtreecommitdiffstats
path: root/Modules/_hotshot.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/_hotshot.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/_hotshot.c')
-rw-r--r--Modules/_hotshot.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/Modules/_hotshot.c b/Modules/_hotshot.c
index 1eecc7e..97037ac 100644
--- a/Modules/_hotshot.c
+++ b/Modules/_hotshot.c
@@ -26,7 +26,7 @@ typedef __int64 hs_time;
#ifndef HAVE_GETTIMEOFDAY
#error "This module requires gettimeofday() on non-Windows platforms!"
#endif
-#ifdef macintosh
+#if defined(macintosh) || (defined(PYOS_OS2) && defined(PYCC_GCC))
#include <sys/time.h>
#else
#include <sys/resource.h>
@@ -51,6 +51,10 @@ typedef struct timeval hs_time;
#define PATH_MAX 254
#endif
+#if defined(PYOS_OS2) && defined(PYCC_GCC)
+#define PATH_MAX 260
+#endif
+
#ifndef PATH_MAX
# ifdef MAX_PATH
# define PATH_MAX MAX_PATH
@@ -987,7 +991,7 @@ calibrate(void)
}
#endif
}
-#if defined(MS_WIN32) || defined(macintosh)
+#if defined(MS_WIN32) || defined(macintosh) || defined(PYOS_OS2)
rusage_diff = -1;
#else
{