[vala] posix: Fix in6_addr and in_addr bindings



commit 5a035ebce38cc31208bd9686e6bcf3f793ce26c7
Author: Dmitry Vagin <dmitry2004 yandex ru>
Date:   Mon Aug 6 21:01:11 2012 +0200

    posix: Fix in6_addr and in_addr bindings
    
    Fixes bug 679036.

 vapi/posix.vapi |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index 3638866..3eeb3af 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 = "")]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]