---
 mingw-w64-headers/crt/unistd.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mingw-w64-headers/crt/unistd.h b/mingw-w64-headers/crt/unistd.h
index 363fbceafa4b..77fb3b6adb72 100644
--- a/mingw-w64-headers/crt/unistd.h
+++ b/mingw-w64-headers/crt/unistd.h
@@ -66,6 +66,7 @@ int truncate64(const char *, _off64_t);
 #define _FILE_OFFSET_BITS_SET_FTRUNCATE
 #if (defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64))
 #define ftruncate ftruncate64
+#define truncate truncate64
 #endif /* _FILE_OFFSET_BITS_SET_FTRUNCATE */
 #endif /* _FILE_OFFSET_BITS_SET_FTRUNCATE */
 
-- 
2.20.1



_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to