1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-15 15:57:13 +00:00

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.
This commit is contained in:
Bruce Mitchener 2020-12-31 12:47:50 +07:00 committed by GitHub
parent a47119f006
commit 0bbdf606b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,8 +28,8 @@
#include <unistd.h>
#endif /* DOS */
#ifdef OS5
/* Solaris doesn't define O_ASYNC, yet still defines FASYNC. */
#if (defined(OS5) || defined(__CYGWIN__)) && !defined(O_ASYNC)
/* Cygwin and Solaris don't define O_ASYNC, yet still define FASYNC. */
#define O_ASYNC FASYNC
#endif