$OpenBSD$

From FreeBSD.

Index: src/PacketBuffer.cc
--- src/PacketBuffer.cc.orig
+++ src/PacketBuffer.cc
@@ -53,16 +53,8 @@ void PacketBuffer::init()
 	//
 	// Start up maintenence thread
 	//
-	pthread_attr_t attr;
-	if( pthread_attr_init( &attr ) != 0 )
-		throw GenericError("pthread_attr_init() failed");
 
-	// TODO: there is no man page for this call on linux. Not sure what it
-	// may return. On some systems it may not be supported at all 
-	// (should return ENOSYS). Should be safe to ignore return val.
-	pthread_attr_setstacksize( &attr, SS_PB );
-
-	if( pthread_create(&maint_thread_tid,&attr,pbmaint_thread_func,this) != 0 )
+	if( pthread_create(&maint_thread_tid,NULL,pbmaint_thread_func,this) != 0 )
 		throw GenericError("pthread_create() returned an error");
 
 	pthread_initted=true;
