mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
SOCK_CLOEXEC and SOCK_NONBLOCK were incorrectly passed as the third argument (protocol) instead of being OR'd into the second argument (type). This caused socket() to fail with EPROTONOSUPPORT (errno 93) on NuttX. Move SOCK_CLOEXEC | SOCK_NONBLOCK to the type parameter and set protocol to 0. Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| fastboot.c | ||
| Kconfig | ||
| Make.defs | ||
| Makefile | ||