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:
Daniel Stenberg 2026-03-27 16:16:56 +01:00
parent d7d683c3ba
commit 4f316230fd
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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 */