Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/pipe/pipe_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <sched.h>
#include <fcntl.h>
#include <errno.h>
#include <pthread.h>

#include "pipe.h"

Expand Down
1 change: 1 addition & 0 deletions examples/pipe/redirect_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <unistd.h>
#include <sched.h>
#include <errno.h>
#include <pthread.h>

#include "pipe.h"

Expand Down
12 changes: 12 additions & 0 deletions system/libuv/0001-libuv-port-for-nuttx.patch
Original file line number Diff line number Diff line change
Expand Up @@ -3960,3 +3960,15 @@ index 57afeb2c..ec8eeb08 100644
+ return UV_ENOTSUP;
+}
+#endif
diff --color -ur libuv_back/src/unix/thread.c libuv/src/unix/thread.c
--- libuv_back/src/unix/thread.c 2024-11-13 09:37:22.507687159 +0800
+++ libuv/src/unix/thread.c 2024-11-13 09:37:47.822236556 +0800
@@ -41,7 +41,7 @@
#include <gnu/libc-version.h> /* gnu_get_libc_version() */
#endif

-#if defined(__linux__)
+#if defined(__linux__) || defined (__NuttX__)
# include <sched.h>
# define uv__cpu_set_t cpu_set_t
#elif defined(__FreeBSD__)
1 change: 1 addition & 0 deletions system/popen/popen.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include <assert.h>
#include <debug.h>
#include <fcntl.h>
#include <errno.h>

#include "nshlib/nshlib.h"

Expand Down
1 change: 1 addition & 0 deletions testing/cmocka/cmocka_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <setjmp.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <syslog.h>
#include <sys/wait.h>
#include <builtin/builtin.h>
Expand Down
1 change: 1 addition & 0 deletions testing/drivertest/drivertest_pm_runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <stddef.h>
#include <setjmp.h>
#include <string.h>
#include <unistd.h>
#include <cmocka.h>
#include <nuttx/power/pm_runtime.h>

Expand Down
2 changes: 2 additions & 0 deletions testing/drivertest/drivertest_posix_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
#include <stdint.h>
#include <cmocka.h>
#include <syslog.h>
#include <getopt.h>
#include <time.h>
#include <nuttx/timers/timer.h>

/****************************************************************************
Expand Down
1 change: 1 addition & 0 deletions testing/drivertest/drivertest_rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include <stdint.h>
#include <cmocka.h>
#include <syslog.h>
#include <getopt.h>
#include <nuttx/timers/rtc.h>
#include <nuttx/clock.h>

Expand Down
1 change: 1 addition & 0 deletions testing/drivertest/drivertest_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <cmocka.h>

Expand Down
3 changes: 3 additions & 0 deletions testing/testsuites/kernel/fs/cases/fs_getfilep_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>

#include <nuttx/fs/fs.h>

#include "fstest.h"

/****************************************************************************
Expand Down
3 changes: 3 additions & 0 deletions testing/testsuites/kernel/mm/cases/mm_test_008.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
#include <setjmp.h>
#include <cmocka.h>
#include <malloc.h>

#include <nuttx/sched.h>

#include "MmTest.h"

/****************************************************************************
Expand Down
1 change: 1 addition & 0 deletions wireless/bluetooth/btsak/btsak.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

#include <nuttx/config.h>

#include <stdbool.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netpacket/bluetooth.h>
Expand Down
Loading