From: Ryan Lortie Date: Wed, 10 Mar 2010 06:15:51 +0000 (-0500) Subject: posix: Use __compar_fn_t as cname for compar_fn_t X-Git-Tag: 0.8.0~221 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ed08578b700621042a7b081853f2ae72cf106ae2;p=thirdparty%2Fvala.git posix: Use __compar_fn_t as cname for compar_fn_t There is no standard name in the ISO C specification for this type. compar_fn_t isn't defined anywhere. comparison_fn_t is a glibc extension that is only defined with _GNU_SOURCE. __compar_fn_t at least has the advantage of always working on glibc. --- diff --git a/vapi/posix.vapi b/vapi/posix.vapi index d032f5087..90f8fbdc9 100644 --- a/vapi/posix.vapi +++ b/vapi/posix.vapi @@ -985,7 +985,7 @@ namespace Posix { [CCode (cheader_filename = "stdlib.h")] public int system (string command); - [CCode (has_target = false, cheader_filename = "stdlib.h")] + [CCode (has_target = false, cheader_filename = "stdlib.h", cname = "__compar_fn_t")] public delegate int compar_fn_t (void* key1, void* key2); [CCode (cheader_filename = "stdlib.h")]