mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-14 00:43:14 +00:00
system/libuv: Include nuttx/tls.h to call task local storage api
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
e5c07b9a62
commit
8d1484b562
1 changed files with 3 additions and 1 deletions
|
|
@ -261,7 +261,7 @@ new file mode 100644
|
|||
index 00000000..728b57f6
|
||||
--- /dev/null
|
||||
+++ b/src/unix/nuttx.c
|
||||
@@ -0,0 +1,284 @@
|
||||
@@ -0,0 +1,286 @@
|
||||
+/* Copyright Xiaomi, Inc. and other Node contributors. All rights reserved.
|
||||
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
+ * of this software and associated documentation files (the "Software"), to
|
||||
|
|
@ -298,6 +298,8 @@ index 00000000..728b57f6
|
|||
+#include <sys/sysinfo.h>
|
||||
+#include <unistd.h>
|
||||
+
|
||||
+#include <nuttx/tls.h>
|
||||
+
|
||||
+int uv_exepath(char* buffer, size_t* size) {
|
||||
+ return UV_ENOTSUP;
|
||||
+}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue