Skip to content

Commit

Permalink
Added missing permission flags to Windows build #333
Browse files Browse the repository at this point in the history
  • Loading branch information
troky committed Jul 7, 2014
1 parent 4a9ee47 commit 2d23a7d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,29 @@

#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
static inline int nanosleep(const struct timespec *req, struct timespec *rem)
{
Expand Down

0 comments on commit 2d23a7d

Please sign in to comment.