summaryrefslogtreecommitdiffstatshomepage
path: root/unix/moduselect.c
diff options
context:
space:
mode:
Diffstat (limited to 'unix/moduselect.c')
-rw-r--r--unix/moduselect.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/unix/moduselect.c b/unix/moduselect.c
index 6a01325a1d..537bd47960 100644
--- a/unix/moduselect.c
+++ b/unix/moduselect.c
@@ -25,6 +25,10 @@
* THE SOFTWARE.
*/
+#include "py/mpconfig.h"
+
+#if MICROPY_PY_USELECT
+
#include <stdio.h>
#include <errno.h>
#include <poll.h>
@@ -212,3 +216,5 @@ const mp_obj_module_t mp_module_uselect = {
.name = MP_QSTR_uselect,
.globals = (mp_obj_dict_t*)&mp_module_select_globals,
};
+
+#endif // MICROPY_PY_USELECT