summaryrefslogtreecommitdiff
path: root/ports/unix/moduselect.c
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2021-02-15 15:49:20 +1100
committerDamien George <damien@micropython.org>2021-02-16 14:59:52 +1100
commit4c54012373e6546704f534d0de3e900704ae9d11 (patch)
treeefae3b05e7a43356688e9ff99ff01734e6532450 /ports/unix/moduselect.c
parentfce0bd1a2af5aebd81d30d79b50210c80f768bc4 (diff)
unix/moduselect: Don't allow both posix and non-posix configurations.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'ports/unix/moduselect.c')
-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>