diff options
author | Brent Cook <bcook@openbsd.org> | 2015-06-13 21:43:55 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2015-06-13 21:43:55 -0500 |
commit | bc7b93470f694eee13cd3d9012caa4caefaeb9bc (patch) | |
tree | edcbb923e37413f7b3e217b06ea6b668cbf9be7d | |
parent | 06d034ceb0ceadc3e9b537f4bf7526cf09a20693 (diff) | |
download | portable-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.c | 3 |
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) | |||
40 | int | 41 | int |
41 | posix_rename(const char *oldpath, const char *newpath) | 42 | posix_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 | ||
46 | static int | 47 | static int |