unix/modos: Remove duplicate level of #if MICROPY_PY_OS_STATVFS.

This commit is contained in:
Paul Sokolovsky 2015-11-26 17:46:26 +02:00
parent 364bb61df3
commit 7dec35d7cc

View File

@ -70,7 +70,6 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(mod_os_stat_obj, mod_os_stat);
#if MICROPY_PY_OS_STATVFS #if MICROPY_PY_OS_STATVFS
#if MICROPY_PY_OS_STATVFS
#if USE_STATFS #if USE_STATFS
#include <sys/vfs.h> #include <sys/vfs.h>
#define STRUCT_STATVFS struct statfs #define STRUCT_STATVFS struct statfs
@ -86,7 +85,6 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(mod_os_stat_obj, mod_os_stat);
#define F_NAMEMAX sb.f_namemax #define F_NAMEMAX sb.f_namemax
#define F_FLAG sb.f_flag #define F_FLAG sb.f_flag
#endif #endif
#endif
STATIC mp_obj_t mod_os_statvfs(mp_obj_t path_in) { STATIC mp_obj_t mod_os_statvfs(mp_obj_t path_in) {
STRUCT_STATVFS sb; STRUCT_STATVFS sb;