Skip to content
Merged
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
14 changes: 13 additions & 1 deletion system/libuv/0001-libuv-port-for-nuttx.patch
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ index 00000000..298bd2f8
+ return 0;
+ }
+
+ /* Make sure the memory is initiallized to zero using calloc() */
+ /* Make sure the memory is initialized to zero using calloc() */
+ *addresses = uv__calloc(*count, sizeof(**addresses));
+ if (*addresses == NULL) {
+ freeifaddrs(addrs);
Expand Down Expand Up @@ -3972,3 +3972,15 @@ diff --color -ur libuv_back/src/unix/thread.c libuv/src/unix/thread.c
# include <sched.h>
# define uv__cpu_set_t cpu_set_t
#elif defined(__FreeBSD__)
diff --git a/src/unix/nuttx.c b/src/unix/nuttx.c
index d0e110a..e1c962e 100644
--- a/src/unix/nuttx.c
+++ b/src/unix/nuttx.c
@@ -222,7 +222,7 @@ ssize_t recvmsg(int sockfd, struct msghdr *msg, int flags) {
return UV_ENOTSUP;
}

-ssize_t sendmsg(int sockfd, struct msghdr *msg, int flags) {
+ssize_t sendmsg(int sockfd, const struct msghdr *msg, int flags) {
return UV_ENOTSUP;
}
Loading