Fix compilation errors on esp-idf platform (#3224)
The issue was reported in #3208.
This commit is contained in:
@ -59,6 +59,12 @@ os_mmap(void *hint, size_t size, int prot, int flags, os_file_handle file)
|
||||
}
|
||||
}
|
||||
|
||||
void *
|
||||
os_mremap(void *old_addr, size_t old_size, size_t new_size)
|
||||
{
|
||||
return os_mremap_slow(old_addr, old_size, new_size);
|
||||
}
|
||||
|
||||
void
|
||||
os_munmap(void *addr, size_t size)
|
||||
{
|
||||
|
||||
@ -234,7 +234,7 @@ unlinkat(int fd, const char *path, int flag)
|
||||
}
|
||||
|
||||
int
|
||||
utimensat(int fd, const char *path, const struct timespec *ts, int flag)
|
||||
utimensat(int fd, const char *path, const struct timespec ts[2], int flag)
|
||||
{
|
||||
errno = ENOSYS;
|
||||
return -1;
|
||||
@ -257,7 +257,7 @@ ftruncate(int fd, off_t length)
|
||||
#endif
|
||||
|
||||
int
|
||||
futimens(int fd, const struct timespec *times)
|
||||
futimens(int fd, const struct timespec times[2])
|
||||
{
|
||||
errno = ENOSYS;
|
||||
return -1;
|
||||
@ -268,4 +268,4 @@ nanosleep(const struct timespec *req, struct timespec *rem)
|
||||
{
|
||||
errno = ENOSYS;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
@ -109,6 +109,12 @@ typedef unsigned int korp_sem;
|
||||
#define DT_LNK DTYPE_LINK
|
||||
#define DT_SOCK DTYPE_SOCK
|
||||
|
||||
static inline int
|
||||
os_getpagesize()
|
||||
{
|
||||
return 4096;
|
||||
}
|
||||
|
||||
typedef int os_file_handle;
|
||||
typedef DIR *os_dir_stream;
|
||||
typedef int os_raw_file_handle;
|
||||
|
||||
Reference in New Issue
Block a user