Hello Bruno, I'm just getting your e-mails now. I haven't read through them completely yet, but I have some important details to add. Recently, in the past month or so, Minix has replaced it's C library with a port of the NetBSD C Library. Many function prototypes and definitions have changed. A lot of work arounds are no longer needed. The NetBSD based C Library is available in Minix 3.2.0. Also, the system compiler cc (ACK) is going to be removed eventually. We are moving towards clang/gcc (available in our pkgsrc repository). Also note, to get the right functions and definitions included, you should have CPPFLAGS set to "-D_NETBSD_SOURCE -D_MINIX -D_POSIX_SOURCE -D_COMPAT_MINIX" and LDADD set to "-lcompat_minix -lminlib"
I'll go through your e-mails in detail and reply as needed. Thanks for working on this. It will save us from having to patch the same code in several packages. -Thomas