Skip to content

Commit

Permalink
Make O_NONBLOCK and O_SYNC conditional if they have not yet been defined
Browse files Browse the repository at this point in the history
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
  • Loading branch information
sahlberg committed May 9, 2017
1 parent 987638a commit 43346ff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions win32/win32_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,13 @@ typedef int socklen_t;
#define minor(a) 0
#endif

#ifndef O_NONBLOCK
#define O_NONBLOCK 0x40000000
#endif

#ifndef O_SYNC
#define O_SYNC 0
#endif

#ifndef O_NOFOLLOW
#define O_NOFOLLOW 00400000
Expand Down

0 comments on commit 43346ff

Please sign in to comment.