$OpenBSD: patch-jdk_src_share_native_sun_security_ec_impl_oid_c,v 1.1 2011/01/11 15:47:50 kurt Exp $
--- jdk/src/share/native/sun/security/ec/impl/oid.c.orig	Tue Oct 26 10:52:13 2010
+++ jdk/src/share/native/sun/security/ec/impl/oid.c	Tue Oct 26 10:52:17 2010
@@ -59,9 +59,9 @@
 #include <sys/types.h>
 
 #ifndef _WIN32
-#ifndef __linux__
+#if !defined(__linux__) && !defined(_ALLBSD_SOURCE)
 #include <sys/systm.h>
-#endif /* __linux__ */
+#endif /* __linux__ || _ALLBSD_SOURCE */
 #include <sys/param.h>
 #endif /* _WIN32 */
 
