summaryrefslogtreecommitdiffstats
path: root/Modules/_io
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-06-23 21:52:40 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-06-23 21:52:40 (GMT)
commit9975877f46efeade3f4af5aa875fc1a256512f1f (patch)
tree90ba118d17fa8df9140f9f015702169f89185103 /Modules/_io
parent1ce46d99dbe13e57544e404966c57072d1dcf8e1 (diff)
parent91e8b8180d5a21ab034044953e0571ecd1f8a154 (diff)
downloadcpython-9975877f46efeade3f4af5aa875fc1a256512f1f.zip
cpython-9975877f46efeade3f4af5aa875fc1a256512f1f.tar.gz
cpython-9975877f46efeade3f4af5aa875fc1a256512f1f.tar.bz2
Check for correct macro, code uses S_ISDIR().
Diffstat (limited to 'Modules/_io')
-rw-r--r--Modules/_io/fileio.c2
1 files changed, 1 insertions, 1 deletions
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 @@ fileio_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
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;