pineapple/externals/libressl/tls/compat/ftruncate.c

18 lines
186 B
C
Raw Normal View History

2020-12-28 16:15:37 +01:00
/*
* Public domain
*
* Kinichiro Inoguchi <inoguchi@openbsd.org>
*/
#ifdef _WIN32
#include <unistd.h>
int
ftruncate(int fd, off_t length)
{
return _chsize(fd, length);
}
#endif