Commit 6c1a9d9d authored by Boudewijn Rempt's avatar Boudewijn Rempt

Ifdef unistd for msvc only

parent 19e4bc27
#ifndef QUIRK_UNISTD_H
#define QUIRK_UNISTD_H
#ifndef _MSC_VER
#include <unistd.h>
#else
#pragma message("winquirk: no unistd.h!")
#include <winsock2.h>
......@@ -113,9 +118,11 @@ static int gethostname(char *__name, size_t __len) {
#define STDERR_FILENO 2
#endif
#if defined _MSC_VER
#if _MSC_VER < 1600
#define ENOTSUP ENOSYS
#endif
#endif
typedef unsigned int gid_t;
typedef unsigned int uid_t;
......@@ -179,3 +186,4 @@ static int sleep(unsigned int sec) {
}
#endif
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment