Removed dependency on unistd.h for MSVC in apps

This commit is contained in:
Paul Bakker 2014-07-07 14:55:07 +02:00
parent 0748895b68
commit 238be3a207
2 changed files with 11 additions and 1 deletions

View file

@ -34,9 +34,12 @@
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <signal.h>
#if !defined(_MSC_VER)
#include <unistd.h>
#endif
#include "polarssl/config.h"
#include "polarssl/entropy.h"

View file

@ -30,7 +30,14 @@
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#if !defined(_MSC_VER)
#include <unistd.h>
#else
#include <io.h>
#define read _read
#define write _write
#endif
#if defined(_WIN32) || defined(_WIN32_WCE)