$OpenBSD: patch-desktop_source_app_app_cxx,v 1.5 2013/11/12 07:57:23 robert Exp $
--- desktop/source/app/app.cxx.orig.port	Tue Oct 22 19:49:23 2013
+++ desktop/source/app/app.cxx	Sat Nov  2 16:06:36 2013
@@ -113,6 +113,8 @@
 #include <sys/wait.h>
 #endif
 
+#include <unistd.h>
+
 #ifdef WNT
 #ifdef _MSC_VER
 #pragma warning(push, 1) /* disable warnings within system headers */
@@ -677,7 +679,7 @@ void Desktop::DeInit()
         // clear lockfile
         m_xLockfile.reset();
 
-        OfficeIPCThread::DisableOfficeIPCThread();
+        OfficeIPCThread::DisableOfficeIPCThread(false);
         if( pSignalHandler )
             osl_removeSignalHandler( pSignalHandler );
     } catch (const RuntimeException&) {
