summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libjava/ChangeLog6
-rw-r--r--libjava/include/posix.h4
2 files changed, 10 insertions, 0 deletions
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 <konqueror@gmx.de>
+
+ * include/posix.h
+ (O_DSYNC): Define O_DSYNC on platforms not
+ supporting O_FSYNC (newlib).
+
2003-06-06 Mark Wielaard <mark@klomp.org>
* 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) '/')