Justin Cormack <justin%specialbusservice.com@localhost> wrote
Er, you can't do that.
1. It breaks the rump builds on most platforms
http://build.myriabit.eu:8012/waterfall as the prototypes dont match
eg see http://build.myriabit.eu:8012/builders/ppc64-cross/builds/5585/steps/shell_3/logs/stdio
It seems that posix says 2nd arg of iconv(3) is char **, but
NetBSD's one is const char **.
2. There is no requirement that rump runs on a platform that has iconv
anyway, it may be running on bare metal, or non Posix platform.
Not sure what the intention was though - I am sure we can find a way
around it...
I would like to include this at least on NetBSD host since we don't
have kernel iconv and then mount_smbfs(8) is useless for filename
conversions.
So is it ok to add a compile-time option as below and define it
somewhere? Or are there any more appropriate make variables to
detect host OS?