summaryrefslogtreecommitdiff
path: root/lang/classpath/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-01-10 16:33:02 +0000
committerjoerg <joerg@pkgsrc.org>2007-01-10 16:33:02 +0000
commitc593369029c63a5723b1863ea2eebed302bee6ba (patch)
treeb71f5552976f2dc24002f06ad5d1b5a15cea499a /lang/classpath/patches
parent38796556ad271b287660a48cc54cab9be60e7f1f (diff)
downloadpkgsrc-c593369029c63a5723b1863ea2eebed302bee6ba.tar.gz
For DragonFly, use O_FSYNC when O_SYNC doesn't exist.
Diffstat (limited to 'lang/classpath/patches')
-rw-r--r--lang/classpath/patches/patch-ac15
1 files changed, 15 insertions, 0 deletions
diff --git a/lang/classpath/patches/patch-ac b/lang/classpath/patches/patch-ac
new file mode 100644
index 00000000000..f74d38be2f2
--- /dev/null
+++ b/lang/classpath/patches/patch-ac
@@ -0,0 +1,15 @@
+$NetBSD: patch-ac,v 1.3 2007/01/10 16:33:02 joerg Exp $
+
+--- native/jni/java-nio/gnu_java_nio_VMChannel.c.orig 2007-01-10 15:49:02.000000000 +0000
++++ native/jni/java-nio/gnu_java_nio_VMChannel.c
+@@ -79,6 +79,10 @@ exception statement from your version. *
+ #define ALIGN_DOWN(p,s) ((p) - ((p) % (s)))
+ #define ALIGN_UP(p,s) ((p) + ((s) - ((p) % (s))))
+
++#if defined(__DragonFly__) && !defined(O_SYNC)
++#define O_SYNC O_FSYNC
++#endif
++
+ /*
+ * Limit to maximum of 16 buffers
+ */