aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2015-06-13 21:43:55 -0500
committerBrent Cook <bcook@openbsd.org>2015-06-13 21:43:55 -0500
commitbc7b93470f694eee13cd3d9012caa4caefaeb9bc (patch)
treeedcbb923e37413f7b3e217b06ea6b668cbf9be7d
parent06d034ceb0ceadc3e9b537f4bf7526cf09a20693 (diff)
downloadportable-bc7b93470f694eee13cd3d9012caa4caefaeb9bc.tar.gz
portable-bc7b93470f694eee13cd3d9012caa4caefaeb9bc.tar.bz2
portable-bc7b93470f694eee13cd3d9012caa4caefaeb9bc.zip
add a missing header and fix typo in windows posix layer
-rw-r--r--crypto/compat/posix_win.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/compat/posix_win.c b/crypto/compat/posix_win.c
index 5793e40..855406b 100644
--- a/crypto/compat/posix_win.c
+++ b/crypto/compat/posix_win.c
@@ -13,6 +13,7 @@
13 13
14#include <errno.h> 14#include <errno.h>
15#include <stdio.h> 15#include <stdio.h>
16#include <stdlib.h>
16#include <string.h> 17#include <string.h>
17#include <unistd.h> 18#include <unistd.h>
18 19
@@ -40,7 +41,7 @@ posix_fopen(const char *path, const char *mode)
40int 41int
41posix_rename(const char *oldpath, const char *newpath) 42posix_rename(const char *oldpath, const char *newpath)
42{ 43{
43 MoveFileEx(oldpath, newpath, MOVEFILE_REPLACE_EXISTING) ? 0 : -1; 44 return MoveFileEx(oldpath, newpath, MOVEFILE_REPLACE_EXISTING) ? 0 : -1;
44} 45}
45 46
46static int 47static int