commit | 9975877f46efeade3f4af5aa875fc1a256512f1f | [log] [tgz] |
---|---|---|
author | Christian Heimes <christian@cheimes.de> | Sun Jun 23 23:52:40 2013 +0200 |
committer | Christian Heimes <christian@cheimes.de> | Sun Jun 23 23:52:40 2013 +0200 |
tree | 90ba118d17fa8df9140f9f015702169f89185103 | |
parent | 1ce46d99dbe13e57544e404966c57072d1dcf8e1 [diff] | |
parent | 91e8b8180d5a21ab034044953e0571ecd1f8a154 [diff] |
Check for correct macro, code uses S_ISDIR().
diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c index ff7d14d..34a5801 100644 --- a/Modules/_io/fileio.c +++ b/Modules/_io/fileio.c
@@ -171,7 +171,7 @@ static int dircheck(fileio* self, PyObject *nameobj) { -#if defined(HAVE_FSTAT) && defined(S_IFDIR) && defined(EISDIR) +#if defined(HAVE_FSTAT) && defined(S_ISDIR) && defined(EISDIR) struct stat buf; if (self->fd < 0) return 0;