Add compat bits for libtls on Windows

This commit is contained in:
kinichiro
2018-02-25 01:59:39 +09:00
parent 47781e69e2
commit 3681d02253
8 changed files with 110 additions and 0 deletions

13
tls/compat/ftruncate.c Normal file
View File

@@ -0,0 +1,13 @@
/*
* Public domain
*
* Kinichiro Inoguchi <inoguchi@openbsd.org>
*/
#include <unistd.h>
int
ftruncate(int fd, off_t length)
{
return _chsize(fd, length);
}