mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-09 13:16:26 +00:00
Fix link error for ESP-IDF 4.4.2 (#1520)
Fix the issue reported by #1484: Platform ESP-IDF broken for WAMR 1.0.0 with ESP-IDF 4.4.2 Let the dummy ftruncate only work with ESP-IDF earlier than 4.4.2
This commit is contained in:
parent
3d56c8133c
commit
8436e88a07
|
@ -228,12 +228,14 @@ fdopendir(int fd)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(4, 4, 2)
|
||||||
int
|
int
|
||||||
ftruncate(int fd, off_t length)
|
ftruncate(int fd, off_t length)
|
||||||
{
|
{
|
||||||
errno = ENOSYS;
|
errno = ENOSYS;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
futimens(int fd, const struct timespec times[2])
|
futimens(int fd, const struct timespec times[2])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user