Commit 41c56b5e authored by Andrew MacIntyre's avatar Andrew MacIntyre

build_os2emx.patch in issue 3868 - update OS/2 EMX makefile and config files

Part of source_os2emx.patch in issue 3868:
  Include/pystrcmp.h:  OS/2 has same C APIs as Windows
  Lib/test/test_io.py: OS/2 has same behaviour as Windows for this test

Reviewed by Amaury Forgeot d'Arc
parent f8db8224
...@@ -8,7 +8,7 @@ extern "C" { ...@@ -8,7 +8,7 @@ extern "C" {
PyAPI_FUNC(int) PyOS_mystrnicmp(const char *, const char *, Py_ssize_t); PyAPI_FUNC(int) PyOS_mystrnicmp(const char *, const char *, Py_ssize_t);
PyAPI_FUNC(int) PyOS_mystricmp(const char *, const char *); PyAPI_FUNC(int) PyOS_mystricmp(const char *, const char *);
#ifdef MS_WINDOWS #if defined(MS_WINDOWS) || defined(PYOS_OS2)
#define PyOS_strnicmp strnicmp #define PyOS_strnicmp strnicmp
#define PyOS_stricmp stricmp #define PyOS_stricmp stricmp
#else #else
......
...@@ -201,7 +201,7 @@ class IOTest(unittest.TestCase): ...@@ -201,7 +201,7 @@ class IOTest(unittest.TestCase):
# On Windows and Mac OSX this test comsumes large resources; It takes # On Windows and Mac OSX this test comsumes large resources; It takes
# a long time to build the >2GB file and takes >2GB of disk space # a long time to build the >2GB file and takes >2GB of disk space
# therefore the resource must be enabled to run this test. # therefore the resource must be enabled to run this test.
if sys.platform[:3] == 'win' or sys.platform == 'darwin': if sys.platform[:3] in ('win', 'os2') or sys.platform == 'darwin':
if not test_support.is_resource_enabled("largefile"): if not test_support.is_resource_enabled("largefile"):
print("\nTesting large file ops skipped on %s." % sys.platform, print("\nTesting large file ops skipped on %s." % sys.platform,
file=sys.stderr) file=sys.stderr)
......
...@@ -287,7 +287,7 @@ SRC.MODULES= $(addprefix $(TOP), \ ...@@ -287,7 +287,7 @@ SRC.MODULES= $(addprefix $(TOP), \
Modules/binascii.c \ Modules/binascii.c \
Modules/cmathmodule.c \ Modules/cmathmodule.c \
Modules/_codecsmodule.c \ Modules/_codecsmodule.c \
Modules/collectionsmodule.c \ Modules/_collectionsmodule.c \
Modules/cPickle.c \ Modules/cPickle.c \
Modules/cStringIO.c \ Modules/cStringIO.c \
Modules/_csv.c \ Modules/_csv.c \
...@@ -295,6 +295,7 @@ SRC.MODULES= $(addprefix $(TOP), \ ...@@ -295,6 +295,7 @@ SRC.MODULES= $(addprefix $(TOP), \
Modules/dlmodule.c \ Modules/dlmodule.c \
Modules/errnomodule.c \ Modules/errnomodule.c \
Modules/fcntlmodule.c \ Modules/fcntlmodule.c \
Modules/_fileio.c \
Modules/_functoolsmodule.c \ Modules/_functoolsmodule.c \
Modules/_heapqmodule.c \ Modules/_heapqmodule.c \
Modules/imageop.c \ Modules/imageop.c \
...@@ -305,7 +306,6 @@ SRC.MODULES= $(addprefix $(TOP), \ ...@@ -305,7 +306,6 @@ SRC.MODULES= $(addprefix $(TOP), \
Modules/md5module.c \ Modules/md5module.c \
Modules/operator.c \ Modules/operator.c \
Modules/_randommodule.c \ Modules/_randommodule.c \
Modules/rgbimgmodule.c \
Modules/shamodule.c \ Modules/shamodule.c \
Modules/sha256module.c \ Modules/sha256module.c \
Modules/sha512module.c \ Modules/sha512module.c \
...@@ -343,6 +343,8 @@ SRC.PYTHON= $(addprefix $(TOP), \ ...@@ -343,6 +343,8 @@ SRC.PYTHON= $(addprefix $(TOP), \
Python/compile.c \ Python/compile.c \
Python/codecs.c \ Python/codecs.c \
Python/errors.c \ Python/errors.c \
Python/formatter_string.c \
Python/formatter_unicode.c \
Python/frozen.c \ Python/frozen.c \
Python/frozenmain.c \ Python/frozenmain.c \
Python/future.c \ Python/future.c \
...@@ -359,8 +361,10 @@ SRC.PYTHON= $(addprefix $(TOP), \ ...@@ -359,8 +361,10 @@ SRC.PYTHON= $(addprefix $(TOP), \
Python/modsupport.c \ Python/modsupport.c \
Python/mysnprintf.c \ Python/mysnprintf.c \
Python/mystrtoul.c \ Python/mystrtoul.c \
Python/peephole.c \
Python/pyarena.c \ Python/pyarena.c \
Python/pyfpe.c \ Python/pyfpe.c \
Python/pymath.c \
Python/pystate.c \ Python/pystate.c \
Python/pystrtod.c \ Python/pystrtod.c \
Python/pythonrun.c \ Python/pythonrun.c \
...@@ -370,11 +374,14 @@ SRC.PYTHON= $(addprefix $(TOP), \ ...@@ -370,11 +374,14 @@ SRC.PYTHON= $(addprefix $(TOP), \
Python/traceback.c \ Python/traceback.c \
Python/getopt.c \ Python/getopt.c \
Python/dynload_shlib.c \ Python/dynload_shlib.c \
Python/thread.c) Python/thread.c \
Python/_warnings.c)
SRC.OBJECT= $(addprefix $(TOP), \ SRC.OBJECT= $(addprefix $(TOP), \
Objects/abstract.c \ Objects/abstract.c \
Objects/boolobject.c \ Objects/boolobject.c \
Objects/bufferobject.c \ Objects/bufferobject.c \
Objects/bytearrayobject.c \
Objects/bytes_methods.c \
Objects/cellobject.c \ Objects/cellobject.c \
Objects/classobject.c \ Objects/classobject.c \
Objects/cobject.c \ Objects/cobject.c \
......
...@@ -52,12 +52,13 @@ extern void initarray(); ...@@ -52,12 +52,13 @@ extern void initarray();
extern void initbinascii(); extern void initbinascii();
extern void initcPickle(); extern void initcPickle();
extern void initcStringIO(); extern void initcStringIO();
extern void initcollections(); extern void init_collections();
extern void initcmath(); extern void initcmath();
extern void initdatetime(); extern void initdatetime();
extern void initdl(); extern void initdl();
extern void initerrno(); extern void initerrno();
extern void initfcntl(); extern void initfcntl();
extern void init_fileio();
extern void init_functools(); extern void init_functools();
extern void init_heapq(); extern void init_heapq();
extern void initimageop(); extern void initimageop();
...@@ -65,7 +66,6 @@ extern void inititertools(); ...@@ -65,7 +66,6 @@ extern void inititertools();
extern void initmath(); extern void initmath();
extern void init_md5(); extern void init_md5();
extern void initoperator(); extern void initoperator();
extern void initrgbimg();
extern void init_sha(); extern void init_sha();
extern void init_sha256(); extern void init_sha256();
extern void init_sha512(); extern void init_sha512();
...@@ -118,12 +118,13 @@ struct _inittab _PyImport_Inittab[] = { ...@@ -118,12 +118,13 @@ struct _inittab _PyImport_Inittab[] = {
{"binascii", initbinascii}, {"binascii", initbinascii},
{"cPickle", initcPickle}, {"cPickle", initcPickle},
{"cStringIO", initcStringIO}, {"cStringIO", initcStringIO},
{"collections", initcollections}, {"_collections", init_collections},
{"cmath", initcmath}, {"cmath", initcmath},
{"datetime", initdatetime}, {"datetime", initdatetime},
{"dl", initdl}, {"dl", initdl},
{"errno", initerrno}, {"errno", initerrno},
{"fcntl", initfcntl}, {"fcntl", initfcntl},
{"_fileio", init_fileio},
{"_functools", init_functools}, {"_functools", init_functools},
{"_heapq", init_heapq}, {"_heapq", init_heapq},
{"imageop", initimageop}, {"imageop", initimageop},
...@@ -131,7 +132,6 @@ struct _inittab _PyImport_Inittab[] = { ...@@ -131,7 +132,6 @@ struct _inittab _PyImport_Inittab[] = {
{"math", initmath}, {"math", initmath},
{"_md5", init_md5}, {"_md5", init_md5},
{"operator", initoperator}, {"operator", initoperator},
{"rgbimg", initrgbimg},
{"_sha", init_sha}, {"_sha", init_sha},
{"_sha256", init_sha256}, {"_sha256", init_sha256},
{"_sha512", init_sha512}, {"_sha512", init_sha512},
......
...@@ -264,6 +264,9 @@ typedef long intptr_t; ...@@ -264,6 +264,9 @@ typedef long intptr_t;
/* Define if you have the <conio.h> header file. */ /* Define if you have the <conio.h> header file. */
#undef HAVE_CONIO_H #undef HAVE_CONIO_H
/* Define to 1 if you have the `copysign' function. */
#define HAVE_COPYSIGN 1
/* Define if you have the <direct.h> header file. */ /* Define if you have the <direct.h> header file. */
#undef HAVE_DIRECT_H #undef HAVE_DIRECT_H
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment