[Python-checkins] CVS: python/dist/src/Python bltinmodule.c,2.243,2.244 importdl.h,2.16,2.17

Tim Peters tim_one@users.sourceforge.net
Sun, 04 Nov 2001 18:46:01 -0800


Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv30873/python/Python

Modified Files:
	bltinmodule.c importdl.h 
Log Message:
SF patch 473749 compile under OS/2 VA C++, from Michael Muller.
Changes enabling Python to compile under OS/2 Visual Age C++. 


Index: bltinmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/bltinmodule.c,v
retrieving revision 2.243
retrieving revision 2.244
diff -C2 -d -r2.243 -r2.244
*** bltinmodule.c	2001/10/29 22:25:45	2.243
--- bltinmodule.c	2001/11/05 02:45:59	2.244
***************
*** 568,572 ****
--- 568,576 ----
  	if (!stat(filename, &s)) {
  		if (S_ISDIR(s.st_mode))
+ #if defined(PYOS_OS2) && defined(PYCC_VACPP)
+ 			errno = EOS2ERR;
+ #else
  			errno = EISDIR;
+ #endif
  		else
  			exists = 1;

Index: importdl.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/importdl.h,v
retrieving revision 2.16
retrieving revision 2.17
diff -C2 -d -r2.16 -r2.17
*** importdl.h	2000/09/01 23:29:28	2.16
--- importdl.h	2001/11/05 02:45:59	2.17
***************
*** 39,42 ****
--- 39,43 ----
  #else
  #ifdef PYOS_OS2
+ #include <os2def.h>
  typedef int (* APIENTRY dl_funcptr)();
  #else