$OpenBSD: patch-provider_server_ECServer_cpp,v 1.27 2014/04/07 13:46:06 robert Exp $
--- provider/server/ECServer.cpp.orig	Thu Jan 30 13:41:34 2014
+++ provider/server/ECServer.cpp	Mon Feb  3 11:25:37 2014
@@ -90,6 +90,10 @@
 #include "unicode/uclean.h"
 #endif
 
+#ifdef __OpenBSD__
+#include <sys/resource.h>
+#endif
+
 #ifdef _DEBUG
 #define new DEBUG_NEW
 #undef THIS_FILE
@@ -935,7 +939,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/attachments" },
+		{ "attachment_path",			"/var/db/zarafa/attachments" },
 		{ "attachment_compression",		"6" },
 
 		// Log options
@@ -1008,7 +1012,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", "", CONFIGSETTING_UNUSED },
 		{ "index_services_path",    "", CONFIGSETTING_UNUSED },
@@ -1037,10 +1041,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 = true;
+#endif
 
 	// Init random generator
 	rand_init();
