Skip to content

Commit d975a1a

Browse files
authored
Enable platform support for esp-idf v5.0.1 (#2050)
1 parent db2a410 commit d975a1a

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

build-scripts/esp-idf/wamr/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ endif()
5151

5252
idf_component_register(SRCS ${WAMR_RUNTIME_LIB_SOURCE} ${PLATFORM_SHARED_SOURCE}
5353
INCLUDE_DIRS ${IWASM_DIR}/include ${UTILS_SHARED_DIR} ${PLATFORM_SHARED_DIR} ${PLATFORM_SHARED_DIR}/../include
54-
REQUIRES pthread
54+
REQUIRES pthread lwip esp_timer
5555
)
5656

5757

core/iwasm/aot/arch/aot_reloc_xtensa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ apply_relocation(AOTModule *module, uint8 *target_section_addr,
294294
snprintf(error_buf, error_buf_size,
295295
"Load relocation section failed: "
296296
"invalid relocation type %d.",
297-
reloc_type);
297+
(int)reloc_type);
298298
return false;
299299
}
300300

core/shared/platform/esp-idf/espidf_platform.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ unlinkat(int fd, const char *path, int flag)
215215
}
216216

217217
int
218-
utimensat(int fd, const char *path, const struct timespec ts[2], int flag)
218+
utimensat(int fd, const char *path, const struct timespec *ts, int flag)
219219
{
220220
errno = ENOSYS;
221221
return -1;
@@ -238,7 +238,7 @@ ftruncate(int fd, off_t length)
238238
#endif
239239

240240
int
241-
futimens(int fd, const struct timespec times[2])
241+
futimens(int fd, const struct timespec *times)
242242
{
243243
errno = ENOSYS;
244244
return -1;

0 commit comments

Comments
 (0)