pkgsrc/lang/classpath/patches/patch-ac

15 lines
480 B
Text

$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
*/