diff options
author | Brent Cook <busterb@gmail.com> | 2019-01-31 09:45:56 -0600 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2019-01-31 13:56:56 -0600 |
commit | a6d7ea956290470254e817adb2f6a3fac9397a17 (patch) | |
tree | e9880ccf45612c854fd97287969b879c9a47e29d /crypto/compat/posix_win.c | |
parent | 495a1b631687f6cc1a1e9fe217aa17184a1b4aff (diff) | |
download | portable-a6d7ea956290470254e817adb2f6a3fac9397a17.tar.gz portable-a6d7ea956290470254e817adb2f6a3fac9397a17.tar.bz2 portable-a6d7ea956290470254e817adb2f6a3fac9397a17.zip |
update autoconf for latest compat functions
Diffstat (limited to 'crypto/compat/posix_win.c')
-rw-r--r-- | crypto/compat/posix_win.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/compat/posix_win.c b/crypto/compat/posix_win.c index d6e2dcb..b73f023 100644 --- a/crypto/compat/posix_win.c +++ b/crypto/compat/posix_win.c | |||
@@ -4,6 +4,7 @@ | |||
4 | * BSD socket emulation code for Winsock2 | 4 | * BSD socket emulation code for Winsock2 |
5 | * File IO compatibility shims | 5 | * File IO compatibility shims |
6 | * Brent Cook <bcook@openbsd.org> | 6 | * Brent Cook <bcook@openbsd.org> |
7 | * Kinichiro Inoguchi <inoguchi@openbsd.org> | ||
7 | */ | 8 | */ |
8 | 9 | ||
9 | #define NO_REDEF_POSIX_FUNCTIONS | 10 | #define NO_REDEF_POSIX_FUNCTIONS |
@@ -208,6 +209,12 @@ posix_setsockopt(int sockfd, int level, int optname, | |||
208 | return rc == 0 ? 0 : wsa_errno(WSAGetLastError()); | 209 | return rc == 0 ? 0 : wsa_errno(WSAGetLastError()); |
209 | } | 210 | } |
210 | 211 | ||
212 | uid_t getuid(void) | ||
213 | { | ||
214 | /* Windows fstat sets 0 as st_uid */ | ||
215 | return 0; | ||
216 | } | ||
217 | |||
211 | #ifdef _MSC_VER | 218 | #ifdef _MSC_VER |
212 | struct timezone; | 219 | struct timezone; |
213 | int gettimeofday(struct timeval * tp, struct timezone * tzp) | 220 | int gettimeofday(struct timeval * tp, struct timezone * tzp) |