diff --git a/winbuild/dist/include/unistd.h b/winbuild/dist/include/unistd.h index 7b9637ef..456be801 100644 --- a/winbuild/dist/include/unistd.h +++ b/winbuild/dist/include/unistd.h @@ -1 +1,11 @@ -#pragma once \ No newline at end of file +#pragma once + +// POSIX open,read,write... deprecated as of VC++ 2005. +// Use ISO conformant _open,_read,_write instead. +#define open _open +#define write _write +#define close _close +#define read _read +#define snprintf _snprintf +#define dup _dup +#define dup2 _dup2 diff --git a/winbuild/dist/include/winbuild.h b/winbuild/dist/include/winbuild.h index a5b5da07..c4b587c7 100644 --- a/winbuild/dist/include/winbuild.h +++ b/winbuild/dist/include/winbuild.h @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include