← Commit list

4f316230fd

Daniel Stenberg
Daniel Stenberg
2026-03-27
SUCCESS Duration: 252s

Subject

tool_util: fix the ftruncate use for DJGPP

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

src/tool_util.c+2 -1
@@ -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 */