$OpenBSD: patch-mainwindow_cpp,v 1.3 2010/03/30 19:21:28 jasper Exp $
--- mainwindow.cpp.orig	Thu Aug  6 19:33:54 2009
+++ mainwindow.cpp	Tue Mar 30 20:52:51 2010
@@ -4,6 +4,7 @@
 
 #include <iostream>
 #include <typeinfo>
+#include <unistd.h>
 
 #include "aboutdialog.h"
 #include "branchpropwindow.h"
@@ -3763,6 +3764,7 @@ void Main::helpDoc()
 	searchList << "doc/tex";	// Easy testing working on vym.tex
 	searchList << "/usr/share/doc/vym";	// Debian
 	searchList << "/usr/share/doc/packages";// Knoppix
+	searchList << "${PREFIX}/share/doc/vym"; // OpenBSD
 
 	bool found=false;
 	QFile docfile;
