diff options
author | kinichiro <kinichiro.inoguchi@gmail.com> | 2018-03-18 00:38:14 +0900 |
---|---|---|
committer | kinichiro <kinichiro.inoguchi@gmail.com> | 2018-03-18 00:48:49 +0900 |
commit | 1fb8c9c6bea797e4db5e395fb34b899682ee8682 (patch) | |
tree | ed17143c8278e688db9f0eace525c23ac96c58e7 /tls/compat/getuid.c | |
parent | 639a6629ae4b2243d1d15670f90750c3200ff4bf (diff) | |
download | portable-1fb8c9c6bea797e4db5e395fb34b899682ee8682.tar.gz portable-1fb8c9c6bea797e4db5e395fb34b899682ee8682.tar.bz2 portable-1fb8c9c6bea797e4db5e395fb34b899682ee8682.zip |
Fix using right functions for file descriptor with MS Visual Studio
Diffstat (limited to 'tls/compat/getuid.c')
-rw-r--r-- | tls/compat/getuid.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tls/compat/getuid.c b/tls/compat/getuid.c index 632967a..9a46317 100644 --- a/tls/compat/getuid.c +++ b/tls/compat/getuid.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 | uid_t | 11 | uid_t |
@@ -12,3 +14,5 @@ getuid(void) | |||
12 | /* Windows fstat sets 0 as st_uid */ | 14 | /* Windows fstat sets 0 as st_uid */ |
13 | return 0; | 15 | return 0; |
14 | } | 16 | } |
17 | |||
18 | #endif | ||