From 4c54012373e6546704f534d0de3e900704ae9d11 Mon Sep 17 00:00:00 2001 From: Jim Mussared Date: Mon, 15 Feb 2021 15:49:20 +1100 Subject: [PATCH] unix/moduselect: Don't allow both posix and non-posix configurations. Signed-off-by: Jim Mussared --- ports/unix/moduselect.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ports/unix/moduselect.c b/ports/unix/moduselect.c index 6a0ee79aa6..a9390a146b 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 #include #include