aboutsummaryrefslogtreecommitdiff
path: root/crypto/compat/posix_win.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/compat/posix_win.c')
-rw-r--r--crypto/compat/posix_win.c7
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
212uid_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
212struct timezone; 219struct timezone;
213int gettimeofday(struct timeval * tp, struct timezone * tzp) 220int gettimeofday(struct timeval * tp, struct timezone * tzp)