From: Christian Heimes Date: Sun, 23 Jun 2013 21:51:44 +0000 (+0200) Subject: Check for correct macro, code uses S_ISDIR(). X-Git-Tag: v3.4.0a1~407^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=91e8b8180d5a21ab034044953e0571ecd1f8a154;p=python Check for correct macro, code uses S_ISDIR(). --- diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c index 8c1fabe360..2d0239e50b 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;