diff options
author | Damien George <damien.p.george@gmail.com> | 2015-12-16 14:17:56 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-12-16 14:17:56 +0000 |
commit | 0d7de08e064dd124bd9a8c95bf6cef284a6bd4d9 (patch) | |
tree | 5f5c4c4bdcc94200eccb09588482d1f0b77d3476 /unix/modos.c | |
parent | 64a909ef5113925adef19f275f62473de8ee68c5 (diff) |
unix: Change define logic of _DIRENT_HAVE_D_INO to match other macros.
Diffstat (limited to 'unix/modos.c')
-rw-r--r-- | unix/modos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/modos.c b/unix/modos.c index 580722db7..26ecdd5b1 100644 --- a/unix/modos.c +++ b/unix/modos.c @@ -184,7 +184,7 @@ STATIC mp_obj_t listdir_next(mp_obj_t self_in) { // DT_UNKNOWN should have 0 value on any reasonable system t->items[1] = MP_OBJ_NEW_SMALL_INT(0); #endif - #if !defined(_DIRENT_HAVE_D_INO) || _DIRENT_HAVE_D_INO + #ifdef _DIRENT_HAVE_D_INO t->items[2] = MP_OBJ_NEW_SMALL_INT(dirent->d_ino); #else t->items[2] = MP_OBJ_NEW_SMALL_INT(0); |