[vala] linux: bind IFNAMSIZ from linux/if.h to fix net/if.h conflict
- From: Michael Lauer <mlauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] linux: bind IFNAMSIZ from linux/if.h to fix net/if.h conflict
- Date: Wed, 30 Mar 2011 23:11:12 +0000 (UTC)
commit d2d7b2d43bad54e2165aed209a88c21cbab677a4
Author: Michael 'Mickey' Lauer <mickey vanille-media de>
Date: Thu Mar 31 01:09:34 2011 +0200
linux: bind IFNAMSIZ from linux/if.h to fix net/if.h conflict
add necessary netinet/in.h include to Linux.Network.IfReq
vapi/linux.vapi | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/vapi/linux.vapi b/vapi/linux.vapi
index 9407d36..1087bcc 100644
--- a/vapi/linux.vapi
+++ b/vapi/linux.vapi
@@ -1181,8 +1181,8 @@ namespace Linux {
namespace Network {
// interface consts, structs, and methods
- [CCode (cheader_filename = "net/if.h")]
- public const int IF_NAMESIZ;
+ [CCode (cname = "IFNAMSIZ", cheader_filename = "linux/if.h")]
+ public const int INTERFACE_NAME_SIZE;
[CCode (cheader_filename = "net/if.h")]
public uint if_nametoindex (string ifname);
@@ -1226,7 +1226,7 @@ namespace Linux {
public uchar port;
}
- [CCode (cname = "struct ifreq", cheader_filename = "linux/if.h", destroy_function = "")]
+ [CCode (cname = "struct ifreq", cheader_filename = "netinet/in.h,linux/if.h", destroy_function = "")]
public struct IfReq {
public char[] ifr_name;
public Posix.SockAddr ifr_addr;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]