Index: ctl/ctlSQLBox.cpp
===================================================================
--- ctl/ctlSQLBox.cpp	(revision 8335)
+++ ctl/ctlSQLBox.cpp	(working copy)
@@ -22,6 +22,7 @@
 
 // Must be last for reasons I haven't fully grokked...
 #include <wx/regex.h>
+#include <wx/sysopt.h>
 
 wxString ctlSQLBox::sqlKeywords;
 