mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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
This commit is contained in:
parent
38b504e9e3
commit
7bf6833e17
11 changed files with 47 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue