Skip to content

Commit 0bbdf60

Browse files
Cygwin doesn't have O_ASYNC, so fix compilation. (#151)
It looks like Cygwin doesn't actually support signal-based I/O, so while this compiles, it won't be correct and will need addressing in another way.
1 parent a47119f commit 0bbdf60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/inet.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
#include <unistd.h>
2929
#endif /* DOS */
3030

31-
#ifdef OS5
32-
/* Solaris doesn't define O_ASYNC, yet still defines FASYNC. */
31+
#if (defined(OS5) || defined(__CYGWIN__)) && !defined(O_ASYNC)
32+
/* Cygwin and Solaris don't define O_ASYNC, yet still define FASYNC. */
3333
#define O_ASYNC FASYNC
3434
#endif
3535

0 commit comments

Comments
 (0)