unix/moduselect: Don't allow both posix and non-posix configurations.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
Jim Mussared 2021-02-15 15:49:20 +11:00 committed by Damien George
parent fce0bd1a2a
commit 4c54012373

View File

@ -29,6 +29,10 @@
#if MICROPY_PY_USELECT_POSIX #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 <stdio.h>
#include <errno.h> #include <errno.h>
#include <poll.h> #include <poll.h>