partial port to Solaris
Bug #1100986 reported by Dave Love on 2013-01-17
This bug affects 1 person
These changes allow compiling (version 0.18) on Solaris 10, but Solaris is missing vasprintf and asprintf,
so it doesn't link. I don't know if/how you'd want to provide those (gnulib?) so I've left it at that.