$OpenBSD: patch-desktop_source_app_app_cxx,v 1.6 2014/10/10 17:13:10 robert Exp $
--- desktop/source/app/app.cxx.orig.port	Tue Sep 16 22:10:41 2014
+++ desktop/source/app/app.cxx	Fri Oct  3 19:58:20 2014
@@ -118,6 +118,8 @@
 #include <sys/wait.h>
 #endif
 
+#include <unistd.h>
+
 #ifdef WNT
 #ifdef _MSC_VER
 #pragma warning(push, 1) /* disable warnings within system headers */
@@ -695,7 +697,7 @@ void Desktop::DeInit()
         // clear lockfile
         m_xLockfile.reset();
 
-        OfficeIPCThread::DisableOfficeIPCThread();
+        OfficeIPCThread::DisableOfficeIPCThread(false);
         if( pSignalHandler )
             osl_removeSignalHandler( pSignalHandler );
     } catch (const RuntimeException&) {
