Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 91e8b81

Browse files
committed
Check for correct macro, code uses S_ISDIR().
1 parent 021362d commit 91e8b81

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_io/fileio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ fileio_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
171171
static int
172172
dircheck(fileio* self, PyObject *nameobj)
173173
{
174-
#if defined(HAVE_FSTAT) && defined(S_IFDIR) && defined(EISDIR)
174+
#if defined(HAVE_FSTAT) && defined(S_ISDIR) && defined(EISDIR)
175175
struct stat buf;
176176
if (self->fd < 0)
177177
return 0;

0 commit comments

Comments
 (0)