Hash : 1fb8c9c6 Author : Date : 2018-03-18T00:38:14
Fix using right functions for file descriptor with MS Visual Studio
Download
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/* * Public domain * * Kinichiro Inoguchi <inoguchi@openbsd.org> */ #ifdef _WIN32 #include <unistd.h> int ftruncate(int fd, off_t length) { return _chsize(fd, length); } #endif