Index: pagelayout_editor/pl_editor_frame.cpp
--- pagelayout_editor/pl_editor_frame.cpp.orig
+++ pagelayout_editor/pl_editor_frame.cpp
@@ -66,7 +66,7 @@
 #include <wx/log.h>
 #include <kiplatform/ui.h>
 
-#if defined(__linux__) || defined(__FreeBSD__)
+#if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__)
 #include <spacenav/spnav_2d_plugin.h>
 #else
 #include <navlib/nl_pl_editor_plugin.h>
@@ -242,7 +242,7 @@ PL_EDITOR_FRAME::PL_EDITOR_FRAME( KIWAY* aKiway, wxWin
     {
         if( !m_spaceMouse )
         {
-#if defined(__linux__) || defined(__FreeBSD__)
+#if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__)
             m_spaceMouse = std::make_unique<SPNAV_2D_PLUGIN>( GetCanvas() );
             m_spaceMouse->SetScale( drawSheetIUScale.IU_PER_MILS / pcbIUScale.IU_PER_MILS );
 #else
