commit | 257b3bfa76742ef68cfb30a087ed85a4dfc54f79 | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Wed Aug 08 06:24:48 2001 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Wed Aug 08 06:24:48 2001 +0000 |
tree | d844e8a4027bd4a8d22d64819cdb5a4204480e12 | |
parent | e54acfd8b2c41597fac0e8c1b0e6cb7cd263dad1 [diff] |
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.
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index fa68162..8f5a932 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c
@@ -592,7 +592,7 @@ exists = 0; /* Test for existence or directory. */ if (!stat(filename, &s)) { - if (S_ISDIR(s.st_mode)) + if ((s.st_mode & S_IFMT) == S_IFDIR) errno = EISDIR; else exists = 1;