From bc7b93470f694eee13cd3d9012caa4caefaeb9bc Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Sat, 13 Jun 2015 21:43:55 -0500 Subject: add a missing header and fix typo in windows posix layer --- crypto/compat/posix_win.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crypto') 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 @@ #include #include +#include #include #include @@ -40,7 +41,7 @@ posix_fopen(const char *path, const char *mode) int posix_rename(const char *oldpath, const char *newpath) { - MoveFileEx(oldpath, newpath, MOVEFILE_REPLACE_EXISTING) ? 0 : -1; + return MoveFileEx(oldpath, newpath, MOVEFILE_REPLACE_EXISTING) ? 0 : -1; } static int -- cgit v1.2.3-55-g6feb