Posix.vapi generates non-Posix type compar_fn_t.
@jasperla
Submitted by Jasper Lievisse Adriaanse Link to original bug (#686214)
Description
The Posix.vapi file generates a C type 'compar_fn_t' for the vala type 'Posix.compar_fn_t'. This is wrong because compar_fn_t is not defined by POSIX and just a GLIBC extension. As such any vala code that uses Posix.compar_fn_t does not work on non-GLIBC platforms.
One way to workaround this would be to generate a "(const void *, const void *)" on non-GILBC platforms, basically everywhere but Linux, as that seems to be the type that GLIBC's stdlib.h typedef's compar_fn_t to.