diff options
author | Christian Heimes <christian@cheimes.de> | 2013-06-23 21:51:44 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-06-23 21:51:44 (GMT) |
commit | 91e8b8180d5a21ab034044953e0571ecd1f8a154 (patch) | |
tree | 6b5c169c6eff91dc720bdaaaed7cf050608ff9d3 | |
parent | 021362dbd4b1385dbb5cd36200bf790399a1335f (diff) | |
download | cpython-91e8b8180d5a21ab034044953e0571ecd1f8a154.zip cpython-91e8b8180d5a21ab034044953e0571ecd1f8a154.tar.gz cpython-91e8b8180d5a21ab034044953e0571ecd1f8a154.tar.bz2 |
Check for correct macro, code uses S_ISDIR().
-rw-r--r-- | Modules/_io/fileio.c | 2 |
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; |