[Python-checkins] CVS: python/dist/src/Python bltinmodule.c,2.223,2.224
Tim Peters
tim_one@users.sourceforge.net
Tue, 07 Aug 2001 23:24:50 -0700
Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv5018/python/dist/src/Python
Modified Files:
bltinmodule.c
Log Message:
Repair the Windows build (S_ISDIR() macro doesn't exist).
Somebody else should feel free to repair this a different way; see Python-
Dev for discussion.
Index: bltinmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/bltinmodule.c,v
retrieving revision 2.223
retrieving revision 2.224
diff -C2 -d -r2.223 -r2.224
*** bltinmodule.c 2001/08/08 05:30:36 2.223
--- bltinmodule.c 2001/08/08 06:24:48 2.224
***************
*** 593,597 ****
/* Test for existence or directory. */
if (!stat(filename, &s)) {
! if (S_ISDIR(s.st_mode))
errno = EISDIR;
else
--- 593,597 ----
/* Test for existence or directory. */
if (!stat(filename, &s)) {
! if ((s.st_mode & S_IFMT) == S_IFDIR)
errno = EISDIR;
else