From: Dmitry Vagin Date: Mon, 6 Aug 2012 19:01:11 +0000 (+0200) Subject: posix: Fix in6_addr and in_addr bindings X-Git-Tag: 0.17.5~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5a035ebce38cc31208bd9686e6bcf3f793ce26c7;p=thirdparty%2Fvala.git posix: Fix in6_addr and in_addr bindings Fixes bug 679036. --- diff --git a/vapi/posix.vapi b/vapi/posix.vapi index 3638866f9..3eeb3aff0 100644 --- a/vapi/posix.vapi +++ b/vapi/posix.vapi @@ -1360,14 +1360,14 @@ namespace Posix { } [SimpleType] - [CCode (cname = "struct in_addr", cheader_filename = "sys/socket.h", destroy_function = "")] + [CCode (cname = "struct in_addr", cheader_filename = "sys/socket.h,netinet/in.h", destroy_function = "")] public struct InAddr { public uint32 s_addr; } - [CCode (cname = "struct in6_addr", cheader_filename = "sys/socket.h", destroy_function = "")] + [CCode (cname = "struct in6_addr", cheader_filename = "sys/socket.h,netinet/in.h", destroy_function = "")] public struct In6Addr { - public uchar[] s6_addr[16]; + public uint8 s6_addr[16]; } [CCode (cname = "struct sockaddr", cheader_filename = "sys/socket.h", destroy_function = "")]