From 257b3bfa76742ef68cfb30a087ed85a4dfc54f79 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Wed, 8 Aug 2001 06:24:48 +0000 Subject: 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. --- Python/bltinmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ builtin_execfile(PyObject *self, PyObject *args) 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; -- cgit v0.12