nuttx-apps/system/libuv
hujun5 5c5c6653fd libuv: fix build error
If UV_ONCE_INIT is a struct, the following errors will occur:

libuv/src/unix/nuttx.c: In function 'uv__global_get':
/home/hujun5/downloads1/vela_sim/apps/system/libuv/libuv/include/uv/unix.h:136:22: error: expected expression before '{' token
  136 | #define UV_ONCE_INIT PTHREAD_ONCE_INIT
      |                      ^~~~~~~~~~~~~~~~~
libuv/src/unix/nuttx.c:287:26: note: in expansion of macro 'UV_ONCE_INIT'
  287 |           global->once = UV_ONCE_INIT;
      |                          ^~~~~~~~~~~~
/home/hujun5/downloads1/vela_sim/apps/system/libuv/libuv/include/uv/unix.h:136:22: error: expected expression before '{' token
  136 | #define UV_ONCE_INIT PTHREAD_ONCE_INIT
      |                      ^~~~~~~~~~~~~~~~~
libuv/src/unix/nuttx.c:288:50: note: in expansion of macro 'UV_ONCE_INIT'
  288 |           global->uv__signal_global_init_guard = UV_ONCE_INIT;

Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-09-23 13:18:27 +08:00
..
.gitignore system/libuv: Bump to v1.42.0 2022-02-28 18:05:00 +08:00
0001-libuv-port-for-nuttx.patch libuv: fix build error 2023-09-23 13:18:27 +08:00
Kconfig system/libuv: Support specify stack size for worker thread 2022-03-29 18:09:10 +03:00
Make.defs Makefile: replace INCDIR to INCDIR_PREFIX 2022-11-10 02:38:58 +08:00
Makefile libuv: Upgrade to v1.46.0 2023-09-18 12:40:13 +08:00
README.md system/libuv: Bump to v1.42.0 2022-02-28 18:05:00 +08:00

libuv

Most features of libuv are supported by current port, except SIGPROF relative function (loop_configure).

Nearly full libuv's test suite avaliable on NuttX, but some known case can't run on sim:

  • loop_update_time
  • idle_starvation
  • signal_multiple_loops
  • signal_pending_on_close
  • metrics_idle_time
  • metrics_idle_time_thread
  • metrics_idle_time_zero

And some will cause crash by some reason:

  • fs_poll_ref