$OpenBSD: patch-hotspot_src_share_vm_utilities_ostream_cpp,v 1.3 2009/05/23 03:03:25 kurt Exp $
--- hotspot/src/share/vm/utilities/ostream.cpp.orig	Fri May  8 03:30:37 2009
+++ hotspot/src/share/vm/utilities/ostream.cpp	Sat May  9 10:15:54 2009
@@ -827,7 +827,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>
