There is this piece of code in headers.h:
#ifdef WXMAC_OSX #define WXMAC 1 #define WXOSX 1 #define BSD 1 #endif #endif
In my testing it’s not caught on FreeBSD 8.1
I propose it be changed to:
#if (defined(unix) || defined(unix)) && !defined(USG) #include <sys/param.h> #endif
And then checks for BSD should be #ifdef BSD This is the recommended way of detecting BSD in the FreeBSD Porter’s Handbook.
This change is already done in my CMake tree.