diff options
Diffstat (limited to 'tls/compat/ftruncate.c')
-rw-r--r-- | tls/compat/ftruncate.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tls/compat/ftruncate.c b/tls/compat/ftruncate.c index e68e6d0..e825e50 100644 --- a/tls/compat/ftruncate.c +++ b/tls/compat/ftruncate.c | |||
@@ -4,6 +4,8 @@ | |||
4 | * Kinichiro Inoguchi <inoguchi@openbsd.org> | 4 | * Kinichiro Inoguchi <inoguchi@openbsd.org> |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #ifdef _WIN32 | ||
8 | |||
7 | #include <unistd.h> | 9 | #include <unistd.h> |
8 | 10 | ||
9 | int | 11 | int |
@@ -11,3 +13,5 @@ ftruncate(int fd, off_t length) | |||
11 | { | 13 | { |
12 | return _chsize(fd, length); | 14 | return _chsize(fd, length); |
13 | } | 15 | } |
16 | |||
17 | #endif | ||