<div dir="ltr"><div dir="auto">While trying to cross-compile tin using crossdev on Gentoo, it failed to do because makecfg.c includes tin.h which includes gsasl.h. Usually it is not unexpected to do so, given the fact that sasl USE-flag was set, but it was compiling tool for CBUILD. So gsasl was required on build system, which is very wierd.<div dir="auto">Insted of simply installing tin into build system, I looked at source and found that only thing needed from tin.h is FreeIfNeeded macro. And this macro is free with condition of pointer being non-null. This macro doesn't have different bahaviour compared to simple free(), if you look man 3 free, it says "If ptr is NULL, no operation is performed".</div><div dir="auto">I changed includes and code and now it should work. Patch attached</div></div>
</div>