mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 04:24:19 +00:00
Added missing permission flags to Windows build #333
This commit is contained in:
parent
4a9ee47cd9
commit
2d23a7d634
23
compat.h
23
compat.h
@ -14,6 +14,29 @@
|
|||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
|
|
||||||
|
#if !defined S_ISDIR && defined S_IFDIR
|
||||||
|
# define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
|
||||||
|
#endif
|
||||||
|
#if !S_IRUSR && S_IREAD
|
||||||
|
# define S_IRUSR S_IREAD
|
||||||
|
#endif
|
||||||
|
#if !S_IRUSR
|
||||||
|
# define S_IRUSR 00400
|
||||||
|
#endif
|
||||||
|
#if !S_IWUSR && S_IWRITE
|
||||||
|
# define S_IWUSR S_IWRITE
|
||||||
|
#endif
|
||||||
|
#if !S_IWUSR
|
||||||
|
# define S_IWUSR 00200
|
||||||
|
#endif
|
||||||
|
#if !S_IXUSR && S_IEXEC
|
||||||
|
# define S_IXUSR S_IEXEC
|
||||||
|
#endif
|
||||||
|
#if !S_IXUSR
|
||||||
|
# define S_IXUSR 00100
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_LIBWINPTHREAD
|
#ifndef HAVE_LIBWINPTHREAD
|
||||||
static inline int nanosleep(const struct timespec *req, struct timespec *rem)
|
static inline int nanosleep(const struct timespec *req, struct timespec *rem)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user