aboutsummaryrefslogtreecommitdiff
path: root/java/jdk16/files/patch-io_io_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'java/jdk16/files/patch-io_io_util.h')
-rw-r--r--java/jdk16/files/patch-io_io_util.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/java/jdk16/files/patch-io_io_util.h b/java/jdk16/files/patch-io_io_util.h
new file mode 100644
index 000000000000..80f00417aa2b
--- /dev/null
+++ b/java/jdk16/files/patch-io_io_util.h
@@ -0,0 +1,21 @@
+$FreeBSD$
+
+--- ../../j2se/src/share/native/java/io/io_util.h.orig Wed Jul 21 08:32:49 2004
++++ ../../j2se/src/share/native/java/io/io_util.h Wed Jul 21 08:37:54 2004
+@@ -10,7 +10,15 @@
+
+ extern jfieldID IO_fd_fdID;
+
+-#if !defined(O_DSYNC) || !defined(O_SYNC)
++#ifdef _BSD_SOURCE
++#include <fcntl.h>
++#ifndef O_SYNC
++#define O_SYNC O_FSYNC
++#endif
++#ifndef O_DSYNC
++#define O_DSYNC O_FSYNC
++#endif
++#elif !defined(O_DSYNC) || !defined(O_SYNC)
+ #define O_SYNC (0x0800)
+ #define O_DSYNC (0x2000)
+ #endif