Hi all, This patch series fixes several issues which are needed to allow notmuch to build on Solaris 11. I've been "testing" it for a month or so by using Karel Zak's fork of mutt along with a copy of notmuch-0.13.2 that I got to compile. After a friend asked for a copy of my setup, I decided to try to get my patches cleaned up enough to submit, so that he wouldn't need to deal with them if he wanted to hack on it. I don't have access to any machines running a modern version of Linux (much less *BSD), so I haven't been able to check whether these changes have broken any other platforms. I've tried to follow the prevailing idiom of compatibility checks and conditionally-set variables, to minimize the impact on other platforms, but it's possible that I overlooked something. I'm really pleased with my experience using notmuch; using it along with the fork of mutt has given me real control of my email for the first time in many years. So I'm happy to offer these changes up in the hopes that they can be useful to others. I'm not subscribed to the mailing list, so please CC me on any comments. I'll also try to watch the web archives of the list just in case. Blake