From 248e983efb6324556826bbe825e679f98cda72b0 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Sat, 7 Jun 2003 14:30:32 +0000 Subject: [PATCH] 2003-06-07 Michael Koch * include/posix.h (O_DSYNC): Define O_DSYNC on platforms not supporting O_FSYNC (newlib). From-SVN: r67587 --- libjava/ChangeLog | 6 ++++++ libjava/include/posix.h | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index c0e494a286b..d29e51eb3c7 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,9 @@ +2003-06-07 Michael Koch + + * include/posix.h + (O_DSYNC): Define O_DSYNC on platforms not + supporting O_FSYNC (newlib). + 2003-06-06 Mark Wielaard * java/awt/Toolkit.java (getDefaultToolkit): Add exception cause to diff --git a/libjava/include/posix.h b/libjava/include/posix.h index 100333c2331..52cc6d2cfde 100644 --- a/libjava/include/posix.h +++ b/libjava/include/posix.h @@ -56,6 +56,10 @@ details. */ #if !defined (O_DSYNC) && defined (O_FSYNC) #define O_DSYNC O_FSYNC #endif +// If O_DSYNC is still not defined, use O_SYNC (needed for newlib) +#if !defined (O_DSYNC) +#define O_DSYNC O_SYNC +#endif // Separator for file name components. #define _Jv_platform_file_separator ((jchar) '/') -- 2.30.2