summaryrefslogtreecommitdiffstats
path: root/Modules/_io/fileio.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-06-23 21:51:44 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-06-23 21:51:44 (GMT)
commit91e8b8180d5a21ab034044953e0571ecd1f8a154 (patch)
tree6b5c169c6eff91dc720bdaaaed7cf050608ff9d3 /Modules/_io/fileio.c
parent021362dbd4b1385dbb5cd36200bf790399a1335f (diff)
downloadcpython-91e8b8180d5a21ab034044953e0571ecd1f8a154.zip
cpython-91e8b8180d5a21ab034044953e0571ecd1f8a154.tar.gz
cpython-91e8b8180d5a21ab034044953e0571ecd1f8a154.tar.bz2
Check for correct macro, code uses S_ISDIR().
Diffstat (limited to 'Modules/_io/fileio.c')
-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 8c1fabe..2d0239e 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;