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:
Xiang Xiao 2022-05-30 06:25:24 +08:00 committed by Petro Karashchenko
parent e5c07b9a62
commit 8d1484b562

View File

@ -261,7 +261,7 @@ new file mode 100644
index 00000000..728b57f6 index 00000000..728b57f6
--- /dev/null --- /dev/null
+++ b/src/unix/nuttx.c +++ b/src/unix/nuttx.c
@@ -0,0 +1,284 @@ @@ -0,0 +1,286 @@
+/* Copyright Xiaomi, Inc. and other Node contributors. All rights reserved. +/* Copyright Xiaomi, Inc. and other Node contributors. All rights reserved.
+ * Permission is hereby granted, free of charge, to any person obtaining a copy + * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to + * of this software and associated documentation files (the "Software"), to
@ -298,6 +298,8 @@ index 00000000..728b57f6
+#include <sys/sysinfo.h> +#include <sys/sysinfo.h>
+#include <unistd.h> +#include <unistd.h>
+ +
+#include <nuttx/tls.h>
+
+int uv_exepath(char* buffer, size_t* size) { +int uv_exepath(char* buffer, size_t* size) {
+ return UV_ENOTSUP; + return UV_ENOTSUP;
+} +}