$OpenBSD: patch-jdk_make_com_sun_nio_Makefile,v 1.2 2011/01/11 15:47:50 kurt Exp $
--- jdk/make/com/sun/nio/Makefile.orig	Fri Aug 13 03:21:36 2010
+++ jdk/make/com/sun/nio/Makefile	Tue Oct 26 10:30:03 2010
@@ -30,7 +30,16 @@
 BUILDDIR = ../../..
 include $(BUILDDIR)/common/Defs.gmk
 
+ifneq ($(PLATFORM), bsd)
 SUBDIRS = sctp
+else
+ifeq ($(OS_VENDOR), FreeBSD)
+# FreeBSD 5.x and lower are unsupported, 6.x has no sctp support.
+ifneq ($(call MajorVersion,$(shell uname -r)), 6)
+SUBDIRS = sctp
+endif
+endif
+endif
 include $(BUILDDIR)/common/Subdirs.gmk
 
 all build clean clobber::
