diff options
| -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 |
