$OpenBSD: patch-desktop_source_app_app_cxx,v 1.8 2015/09/29 16:10:48 robert Exp $
--- desktop/source/app/app.cxx.orig.port	Thu Sep 17 15:33:12 2015
+++ desktop/source/app/app.cxx	Sun Sep 27 12:18:17 2015
@@ -120,6 +120,8 @@
 #include <sys/wait.h>
 #endif
 
+#include <unistd.h>
+
 #ifdef WNT
 #ifdef _MSC_VER
 #pragma warning(push, 1) /* disable warnings within system headers */
@@ -640,7 +642,7 @@ void Desktop::DeInit()
         // clear lockfile
         m_xLockfile.reset();
 
-        OfficeIPCThread::DisableOfficeIPCThread();
+        OfficeIPCThread::DisableOfficeIPCThread(false);
         if( pSignalHandler )
             osl_removeSignalHandler( pSignalHandler );
     } catch (const RuntimeException&) {
