summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/unix/moduselect.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/unix/moduselect.c b/ports/unix/moduselect.c
index 6a0ee79aa..a9390a146 100644
--- a/ports/unix/moduselect.c
+++ b/ports/unix/moduselect.c
@@ -29,6 +29,10 @@
#if MICROPY_PY_USELECT_POSIX
+#if MICROPY_PY_USELECT
+#error "Can't have both MICROPY_PY_USELECT and MICROPY_PY_USELECT_POSIX."
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <poll.h>