summaryrefslogtreecommitdiffstatshomepage
path: root/unix/modtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'unix/modtime.c')
-rw-r--r--unix/modtime.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/unix/modtime.c b/unix/modtime.c
index d3b780790c..196b1506a5 100644
--- a/unix/modtime.c
+++ b/unix/modtime.c
@@ -24,6 +24,9 @@
* THE SOFTWARE.
*/
+#include "py/mpconfig.h"
+#if MICROPY_PY_UTIME
+
#include <unistd.h>
#include <errno.h>
#include <string.h>
@@ -190,3 +193,5 @@ const mp_obj_module_t mp_module_time = {
.name = MP_QSTR_utime,
.globals = (mp_obj_dict_t*)&mp_module_time_globals,
};
+
+#endif // MICROPY_PY_UTIME