[vala] linux: add dependency on <sys/socket.h> to <linux/if.h> in Linux.Network



commit 9f0084822e6384354346d7567d03dbae39a9908d
Author: Alistair Thomas <astavale yahoo co uk>
Date:   Mon Mar 7 13:04:47 2016 +0000

    linux: add dependency on <sys/socket.h> to <linux/if.h> in Linux.Network
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763227

 vapi/linux.vapi |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/vapi/linux.vapi b/vapi/linux.vapi
index 3176747..a2a504d 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;


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