Skip to content

Commit

Permalink
Hack together a clean build on Windows with MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Feb 22, 2018
1 parent 691f925 commit 86a918e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/bcrypt/bcrypt.c
Expand Up @@ -15,7 +15,11 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#ifndef _WIN32
#include <unistd.h>
#else
#include <io.h>
#endif
#include <errno.h>

#include "bcrypt.h"
Expand All @@ -39,7 +43,11 @@ static int try_close(int fd)
static int try_read(int fd, char *out, size_t count)
{
size_t total;
#ifndef _WIN32
ssize_t partial;
#else
int partial;
#endif

total = 0;
while (total < count)
Expand Down

0 comments on commit 86a918e

Please sign in to comment.