$OpenBSD: patch-hotspot_src_share_vm_utilities_ostream_cpp,v 1.2 2009/01/04 23:25:16 kurt Exp $
--- hotspot/src/share/vm/utilities/ostream.cpp.orig	Thu Nov 20 03:41:06 2008
+++ hotspot/src/share/vm/utilities/ostream.cpp	Tue Dec 23 07:16:15 2008
@@ -821,7 +821,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>
