on Gentoo/FreeBSD libopensync fail compilation:
cc1: warnings being treated as errors
vformat.c: In function '_read_attribute_value_add':
vformat.c:242: warning: passing argument 2 of 'libiconv' from incompatible
pointer type
vformat.c:270: warning: passing argument 2 of 'libiconv' from incompatible
pointer type
gmake[3]: *** [vformat.lo] Error 1
gmake[3]: *** Waiting for unfinished jobs....
gmake[2]: *** [all-recursive] Error 1
gmake[1]: *** [all-recursive] Error 1
gmake: *** [all] Error 2
the problem is around an #ifdef specific for Solaris making g/fbsd fallback to
a generic #ifdef statement not suitable for *BSD userland. Attached there is a
patch that change the #ifdef declaration in something usable for
Solaris/FreeBSD/NetBSD.
Reproducible: Always