mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-31 00:44:19 +00:00
Fixed compatilibilty issues on MSVS.
This commit is contained in:
parent
a408e856b2
commit
e0b34485f7
22
winbuild/dist/include/unistd.h
vendored
22
winbuild/dist/include/unistd.h
vendored
@ -1,11 +1,29 @@
|
||||
#pragma once
|
||||
|
||||
/* Values for the second argument to access.
|
||||
These may be OR'd together. */
|
||||
#define R_OK 4 /* Test for read permission. */
|
||||
#define W_OK 2 /* Test for write permission. */
|
||||
#define F_OK 0 /* Test for existence. */
|
||||
|
||||
// POSIX open,read,write... deprecated as of VC++ 2005.
|
||||
// Use ISO conformant _open,_read,_write instead.
|
||||
#define access _access
|
||||
#define dup2 _dup2
|
||||
#define execve _execve
|
||||
#define ftruncate _chsize
|
||||
#define unlink _unlink
|
||||
#define fileno _fileno
|
||||
#define getcwd _getcwd
|
||||
#define chdir _chdir
|
||||
#define isatty _isatty
|
||||
#define lseek _lseek
|
||||
#define open _open
|
||||
#define write _write
|
||||
#define close _close
|
||||
#define read _read
|
||||
#define snprintf _snprintf
|
||||
#define dup _dup
|
||||
#define dup2 _dup2
|
||||
|
||||
#define STDIN_FILENO 0
|
||||
#define STDOUT_FILENO 1
|
||||
#define STDERR_FILENO 2
|
Loading…
x
Reference in New Issue
Block a user