4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-21 00:07:36 +08:00

libc/include/sys/_default_fcntl.h: O_RSYNC and O_DSYNC are POSIX

These should not be in a Cygewin conditional.
This commit is contained in:
Joel Sherrill 2024-06-29 15:57:57 -05:00
parent 920b72f4f6
commit a0637f8033

View File

@ -71,11 +71,12 @@ extern "C" {
#define O_DIRECT _FDIRECT #define O_DIRECT _FDIRECT
#endif #endif
#define O_DSYNC _FSYNC
#define O_RSYNC _FSYNC
#if defined (__CYGWIN__) #if defined (__CYGWIN__)
#define O_BINARY _FBINARY #define O_BINARY _FBINARY
#define O_TEXT _FTEXT #define O_TEXT _FTEXT
#define O_DSYNC _FSYNC
#define O_RSYNC _FSYNC
/* Linux-specific flags */ /* Linux-specific flags */
#if __GNU_VISIBLE #if __GNU_VISIBLE