> #define _XOPEN_SOURCE
Simply removing it is the best option, as it compiles and runs on Linux OK
without this line.
I've no idea why it was put in, but the line originates from the initial code
creation back in 2005.
Some background on this define:
I have updated pkgsrc to 1.8. I haven't really shaken it out, but it
starts up fine on NetBSD 8 amd64.
I have a stray patch from before. I am not sure what's going on with
the original visibility define, and why it needs to be different on
sunos.
In general, I lean to not having any visibility