diff -ur qjoypad-3.4-orig/src/layout.h qjoypad-3.4/src/layout.h
--- qjoypad-3.4-orig/src/layout.h	2006-03-17 23:23:24.000000000 -0500
+++ qjoypad-3.4/src/layout.h	2006-03-17 23:26:44.000000000 -0500
@@ -40,6 +40,9 @@
 //for recognizing when the special empty layout is in use
 #define NL "[NO LAYOUT]"
 
+//Circular dependency in the headers, so adding a forward declaration here
+class LayoutEdit;
+
 //where QJoyPad saves its settings!
 const QString settingsDir(QDir::homeDirPath() + "/.qjoypad3/");