Add compat bits for libtls on Windows
This commit is contained in:
13
tls/compat/ftruncate.c
Normal file
13
tls/compat/ftruncate.c
Normal 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);
|
||||
}
|
Reference in New Issue
Block a user