Ok.
To begin with, MySQL-wsrep + Galera also compile on Solaris 11 (at
least x86).
Secondly, if you look at the code around line 339 in wsrep_utils.cc you
will see that the problem there is trivial and requires 2 lines of code.
The real "dependency" is in Galera, which requires a modern GCC to
compile (boost).
And after you install modern GCC, FreeBSD headers seem to be so er...
incompatible that they cause issues even at ASIO library level which
Galera relies on, and which is supposed to be totally cross-platform...
So I figured it would require way too many patching and ifdefs to
bother. By contrast, porting to Solaris took about a day. Which, IMO,
makes FreeBSD a freak of nature.
Hope that helps,
Alex
--
Alexey Yurchenko,
Codership Oy,
www.codership.com
Skype: alexey.yurchenko, Phone: +358-400-516-011