Check for correct macro, code uses S_ISDIR().

This commit is contained in:
Christian Heimes 2013-06-23 23:51:44 +02:00
parent 021362dbd4
commit 91e8b8180d
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ fileio_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
static int static int
dircheck(fileio* self, PyObject *nameobj) 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; struct stat buf;
if (self->fd < 0) if (self->fd < 0)
return 0; return 0;