$OpenBSD: patch-spooler_Spooler_cpp,v 1.13 2012/05/05 16:56:17 ajacoutot Exp $
--- spooler/Spooler.cpp.orig	Thu May  3 16:37:10 2012
+++ spooler/Spooler.cpp	Sat May  5 17:39:39 2012
@@ -1223,6 +1223,7 @@ int main(int argc, char *argv[]) {
 
 	// detect linuxthreads, which is too broken to correctly run the spooler
 	if (!bForked) {
+#if defined(__linux__)
 		char buffer[256];
 		confstr(_CS_GNU_LIBPTHREAD_VERSION, buffer, sizeof(buffer));
 		if (strncmp(buffer, "linuxthreads", strlen("linuxthreads")) == 0) {
@@ -1231,6 +1232,9 @@ int main(int argc, char *argv[]) {
 			g_lpLogger->Log(EC_LOGLEVEL_FATAL, "WARNING: your system is running with outdated linuxthreads.");
 			g_lpLogger->Log(EC_LOGLEVEL_FATAL, "WARNING: the zarafa-spooler will only be able to send one message at a time.");
 		}
+#elif defined(__OpenBSD__)
+		bNPTL = true;
+#endif
 	}
 
 	// set socket filename
