$NetBSD: patch-ac,v 1.4 2015/12/29 23:34:45 dholland Exp $ Dragonfly support. --- 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 */