--- /var/tmp/portage/x11-libs/wxGTK-2.8.9.1-r1/work/wxPython-src-2.8.9.1/include/wx/db.h	2007-07-04 21:24:57.000000000 +0200
+++ /usr/include/wx-2.8/wx/db.h	2008-11-07 16:00:06.000000000 +0100
@@ -77,12 +77,17 @@
         // SQL headers define BOOL if it's not defined yet but BOOL is also
         // defined in many other places on other systems (Motif, at least on
         // OpenVMS; Cocoa and X11) so prevent the problem by defining it before
         // including these headers
+        #if defined(BOOL)
+        #include <sql.h>
+        #include <sqlext.h>
+        #else
         #define BOOL int
         #include <sql.h>
         #include <sqlext.h>
         #undef BOOL
+        #endif
     #endif // wxUSE_BUILTIN_IODBC/!wxUSE_BUILTIN_IODBC
     }
 #endif
 
