$OpenBSD: patch-desktop_source_app_app_cxx,v 1.9 2016/03/01 21:39:58 robert Exp $
--- desktop/source/app/app.cxx.orig.port	Wed Jan 27 01:58:25 2016
+++ desktop/source/app/app.cxx	Wed Feb 10 14:23:02 2016
@@ -124,6 +124,8 @@
 #include <sys/wait.h>
 #endif
 
+#include <unistd.h>
+
 #ifdef WNT
 #ifdef _MSC_VER
 #pragma warning(push, 1) /* disable warnings within system headers */
@@ -637,7 +639,7 @@ void Desktop::DeInit()
         // clear lockfile
         m_xLockfile.reset();
 
-        OfficeIPCThread::DisableOfficeIPCThread();
+        OfficeIPCThread::DisableOfficeIPCThread(false);
         if( pSignalHandler )
             osl_removeSignalHandler( pSignalHandler );
     } catch (const RuntimeException&) {
