diff --git a/py/parse.c b/py/parse.c
index 3daa5ff83e055c7d21d2f96d9eadb9d6cf000ba6..0b60569d0fb4c4f75abe997e6d6b034a8d4fa16d 100644
--- a/py/parse.c
+++ b/py/parse.c
@@ -449,6 +449,9 @@ STATIC void push_result_token(parser_t *parser) {
 
 #if MICROPY_COMP_MODULE_CONST
 STATIC const mp_rom_map_elem_t mp_constants_table[] = {
+    #if MICROPY_PY_UERRNO
+    { MP_ROM_QSTR(MP_QSTR_errno), MP_ROM_PTR(&mp_module_uerrno) },
+    #endif
     #if MICROPY_PY_UCTYPES
     { MP_ROM_QSTR(MP_QSTR_uctypes), MP_ROM_PTR(&mp_module_uctypes) },
     #endif