summaryrefslogtreecommitdiff
path: root/vapi/linux.vapi
diff options
context:
space:
mode:
authorAlistair Thomas <astavale@yahoo.co.uk>2016-03-07 13:04:47 +0000
committerRico Tzschichholz <ricotz@ubuntu.com>2016-03-08 16:46:06 +0100
commit9f0084822e6384354346d7567d03dbae39a9908d (patch)
tree4ae9daf83055adc04930ee9b61d705e3af2eef8d /vapi/linux.vapi
parent15e3d79e7e211ee20f7f210ea146c2a7d46e6047 (diff)
downloadvala-9f0084822e6384354346d7567d03dbae39a9908d.tar.gz
linux: add dependency on <sys/socket.h> to <linux/if.h> in Linux.Network
https://bugzilla.gnome.org/show_bug.cgi?id=763227
Diffstat (limited to 'vapi/linux.vapi')
-rw-r--r--vapi/linux.vapi10
1 files changed, 5 insertions, 5 deletions
diff --git a/vapi/linux.vapi b/vapi/linux.vapi
index 317674768..a2a504d71 100644
--- a/vapi/linux.vapi
+++ b/vapi/linux.vapi
@@ -1250,7 +1250,7 @@ namespace Linux {
namespace Network {
// interface consts, structs, and methods
- [CCode (cname = "IFNAMSIZ", cheader_filename = "linux/if.h")]
+ [CCode (cname = "IFNAMSIZ", cheader_filename = "sys/socket.h,linux/if.h")]
public const int INTERFACE_NAME_SIZE;
[CCode (cheader_filename = "net/if.h")]
@@ -1260,7 +1260,7 @@ namespace Linux {
[CCode (cheader_filename = "net/if.h")]
public IfNameindex if_nameindex ();
- [CCode (cname = "int", cprefix = "IFF_", has_type_id = false, cheader_filename = "linux/if.h")]
+ [CCode (cname = "int", cprefix = "IFF_", has_type_id = false, cheader_filename = "sys/socket.h,linux/if.h")]
public enum IfFlag {
UP,
BROADCAST,
@@ -1279,13 +1279,13 @@ namespace Linux {
DYNAMIC
}
- [CCode (cname = "struct if_nameindex", has_type_id = false, cheader_filename = "linux/if.h", destroy_function = "if_freenameindex")]
+ [CCode (cname = "struct if_nameindex", has_type_id = false, cheader_filename = "sys/socket.h,linux/if.h", destroy_function = "if_freenameindex")]
public struct IfNameindex {
public uint if_index;
public string if_name;
}
- [CCode (cname = "struct ifmap", has_type_id = false, cheader_filename = "linux/if.h", destroy_function = "")]
+ [CCode (cname = "struct ifmap", has_type_id = false, cheader_filename = "sys/socket.h,linux/if.h", destroy_function = "")]
public struct IfMap {
public ulong mem_start;
public ulong mem_end;
@@ -1316,7 +1316,7 @@ namespace Linux {
public char[] ifr_newname;
}
- [CCode (cname = "struct ifconf", has_type_id = false, cheader_filename = "linux/if.h", destroy_function = "")]
+ [CCode (cname = "struct ifconf", has_type_id = false, cheader_filename = "sys/socket.h,linux/if.h", destroy_function = "")]
public struct IfConf {
public int ifc_len;
public string ifc_buf;