$OpenBSD: patch-hotspot_src_share_vm_utilities_ostream_cpp,v 1.4 2011/01/11 15:47:50 kurt Exp $
--- hotspot/src/share/vm/utilities/ostream.cpp.orig	Fri Aug 13 03:28:25 2010
+++ hotspot/src/share/vm/utilities/ostream.cpp	Mon Oct 25 18:15:45 2010
@@ -848,7 +848,7 @@ bufferedStream::~bufferedStream() {
 
 #ifndef PRODUCT
 
-#if defined(SOLARIS) || defined(LINUX)
+#if defined(SOLARIS) || defined(LINUX) || defined(_ALLBSD_SOURCE)
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
