Index: gerbview/gerbview_frame.h
--- gerbview/gerbview_frame.h.orig
+++ gerbview/gerbview_frame.h
@@ -46,7 +46,7 @@ class REPORTER;
 class SELECTION;
 class wxStaticText;
 
-#if defined(__linux__) || defined(__FreeBSD__)
+#if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__)
 class SPNAV_2D_PLUGIN;
 #else
 class NL_GERBVIEW_PLUGIN;
@@ -528,7 +528,7 @@ class GERBVIEW_FRAME : public EDA_DRAW_FRAME (private)
     wxStaticText*       m_dcodeText;        // a message on the auxiliary toolbar,
                                             // relative to the m_DCodeSelector
 
-#if defined(__linux__) || defined(__FreeBSD__)
+#if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__)
     std::unique_ptr<SPNAV_2D_PLUGIN> m_spaceMouse;
 #else
     std::unique_ptr<NL_GERBVIEW_PLUGIN> m_spaceMouse;
