$OpenBSD: patch-provider_server_ECServer_cpp,v 1.18 2011/12/22 17:10:04 ajacoutot Exp $
--- provider/server/ECServer.cpp.orig	Thu Dec 22 01:02:36 2011
+++ provider/server/ECServer.cpp	Thu Dec 22 12:16:04 2011
@@ -86,6 +86,10 @@
 #include "unicode/uclean.h"
 #endif
 
+#ifdef __OpenBSD__
+#include <sys/resource.h>
+#endif
+
 #ifdef _DEBUG
 #define new DEBUG_NEW
 #undef THIS_FILE
@@ -722,7 +726,7 @@ int running_server(char *szName, const char *szConfig)
 		{ "mysql_config_file",			"/etc/zarafa/my.cnf" },
 #endif
 		{ "attachment_storage",			"database" },
-		{ "attachment_path",			"/var/lib/zarafa" },
+		{ "attachment_path",			"/var/db/zarafa" },
 		{ "attachment_compression",		"6" },
 
 		// Log options
@@ -794,7 +798,7 @@ int running_server(char *szName, const char *szConfig)
 
 		{ "client_update_enabled",	"no" },
 		{ "client_update_log_level", "1", CONFIGSETTING_RELOADABLE },
-		{ "client_update_path",		"/var/lib/zarafa/client", CONFIGSETTING_RELOADABLE },
+		{ "client_update_path",		"/var/db/zarafa/client", CONFIGSETTING_RELOADABLE },
 		{ "client_update_log_path",	"/var/log/zarafa/autoupdate", CONFIGSETTING_RELOADABLE },
         { "index_services_enabled", "no", CONFIGSETTING_RELOADABLE }, 
         { "index_services_path",    "file:///var/run/zarafa-indexer", CONFIGSETTING_RELOADABLE },        
@@ -816,10 +820,14 @@ int running_server(char *szName, const char *szConfig)
 		{ NULL, NULL },
 	};
 
+#if defined(__linux__)
 	char buffer[256];
 	confstr(_CS_GNU_LIBPTHREAD_VERSION, buffer, sizeof(buffer));
 	if (strncmp(buffer, "linuxthreads", strlen("linuxthreads")) == 0)
 		m_bNPTL = false;
+#elif defined(__OpenBSD__)
+	m_bNPTL = false;
+#endif
 
 	// Init random generator
 	rand_init();
