--- a/wxVillaLib/PropDlg.cpp
+++ b/wxVillaLib/PropDlg.cpp
@@ -12,7 +12,9 @@
 #include "utils.h"
 #include <wx/fontdlg.h>
 #include <wx/colordlg.h>
+#ifdef __WXMSW__
 #include <wx/generic/colrdlgg.h>
+#endif
 #include <wx/filedlg.h>
 #include <wx/dirdlg.h>
 #include <wx/grid.h>