]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix: Fix in6_addr and in_addr bindings
authorDmitry Vagin <dmitry2004@yandex.ru>
Mon, 6 Aug 2012 19:01:11 +0000 (21:01 +0200)
committerJürg Billeter <j@bitron.ch>
Mon, 6 Aug 2012 19:01:11 +0000 (21:01 +0200)
Fixes bug 679036.

vapi/posix.vapi

index 3638866f93d8c70f6c736ccd927eeaea135480b2..3eeb3aff0eab59280287e3daaa814ef0d28d1e91 100644 (file)
@@ -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 = "")]