2013-09-26 17:14:40 +02:00

16 lines
480 B
Plaintext

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