mirror of
https://github.com/python/cpython.git
synced 2025-09-04 16:01:10 +00:00
OS/2 VACPP build updates/fixes
This commit is contained in:
parent
174175bf3a
commit
da4d6cb573
5 changed files with 6 additions and 5 deletions
|
@ -42,8 +42,8 @@ corresponding Unix manual entries for more information on calls.");
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <process.h>
|
#include <process.h>
|
||||||
#include "osdefs.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
#include "osdefs.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
|
@ -165,6 +165,7 @@ OBJECTS = \
|
||||||
$(PATHOBJ)\MethodObject.obj \
|
$(PATHOBJ)\MethodObject.obj \
|
||||||
$(PATHOBJ)\ModuleObject.obj \
|
$(PATHOBJ)\ModuleObject.obj \
|
||||||
$(PATHOBJ)\Object.obj \
|
$(PATHOBJ)\Object.obj \
|
||||||
|
$(PATHOBJ)\ObMalloc.obj \
|
||||||
$(PATHOBJ)\RangeObject.obj \
|
$(PATHOBJ)\RangeObject.obj \
|
||||||
$(PATHOBJ)\SliceObject.obj \
|
$(PATHOBJ)\SliceObject.obj \
|
||||||
$(PATHOBJ)\StringObject.obj \
|
$(PATHOBJ)\StringObject.obj \
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
/* Provide a default library so writers of extension modules
|
/* Provide a default library so writers of extension modules
|
||||||
* won't have to explicitly specify it anymore
|
* won't have to explicitly specify it anymore
|
||||||
*/
|
*/
|
||||||
#pragma library("Python22.lib")
|
#pragma library("Python24.lib")
|
||||||
|
|
||||||
/***************************************************/
|
/***************************************************/
|
||||||
/* 32-Bit IBM VisualAge C/C++ v3.0 for OS/2 */
|
/* 32-Bit IBM VisualAge C/C++ v3.0 for OS/2 */
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
LIBRARY PYTHON22 INITINSTANCE TERMINSTANCE
|
LIBRARY PYTHON24 INITINSTANCE TERMINSTANCE
|
||||||
DESCRIPTION 'Python 2.2 Core DLL'
|
DESCRIPTION 'Python 2.4 Core DLL'
|
||||||
PROTMODE
|
PROTMODE
|
||||||
DATA MULTIPLE NONSHARED
|
DATA MULTIPLE NONSHARED
|
||||||
|
|
||||||
|
|
|
@ -575,7 +575,7 @@ builtin_execfile(PyObject *self, PyObject *args)
|
||||||
struct stat s;
|
struct stat s;
|
||||||
if (stat(filename, &s) == 0) {
|
if (stat(filename, &s) == 0) {
|
||||||
if (S_ISDIR(s.st_mode))
|
if (S_ISDIR(s.st_mode))
|
||||||
# if defined(PY_OS2) && defined(PYCC_VACPP)
|
# if defined(PYOS_OS2) && defined(PYCC_VACPP)
|
||||||
errno = EOS2ERR;
|
errno = EOS2ERR;
|
||||||
# else
|
# else
|
||||||
errno = EISDIR;
|
errno = EISDIR;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue