$NetBSD: patch-am,v 1.3 2011/12/29 16:35:42 joerg Exp $

--- src/frontends/controllers/ControlInset.tmpl.orig	2002-01-16 14:47:57.000000000 +0000
+++ src/frontends/controllers/ControlInset.tmpl	2007-10-13 16:02:27.000000000 +0000
@@ -10,9 +10,14 @@
  * instantiated if this file is #included in the derived classes' .C file.
  */
 
+#ifndef CONTROLINSET_TMPL
+#define CONTROLINSET_TMPL
+
+#include "LyXView.h"
 #include "ControlInset.h"
 #include "support/LAssert.h"
 #include "debug.h" 
+#include "buffer.h"
 
 
 template <class Inset, class Params>
@@ -183,3 +188,5 @@ void ControlInset<Inset, Params>::connec
 	}
 	connect();
 }
+
+#endif
