mirror of
https://github.com/curl/curl.git
synced 2026-05-30 06:57:28 +03:00
tool_util: fix the ftruncate use for DJGPP
Follow-up to 6041b9b11b
Since we define ftruncate as a macro, we can't use the macro within
the function!
Closes #21125
This commit is contained in:
parent
d7d683c3ba
commit
4f316230fd
1 changed files with 2 additions and 1 deletions
|
|
@ -105,7 +105,8 @@ int msdos_ftruncate(int fd, curl_off_t where)
|
|||
if(where > INT_MAX)
|
||||
return -1;
|
||||
|
||||
return ftruncate(fd, (off_t) where);
|
||||
/* avoid using the macro for this */
|
||||
return (ftruncate)(fd, (off_t) where);
|
||||
}
|
||||
#endif /* USE_MSDOS_FTRUNCATE */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue