]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
linux: bind IFNAMSIZ from linux/if.h to fix net/if.h conflict
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>
Wed, 30 Mar 2011 23:09:34 +0000 (01:09 +0200)
committerMichael 'Mickey' Lauer <mickey@vanille-media.de>
Wed, 30 Mar 2011 23:09:34 +0000 (01:09 +0200)
add necessary netinet/in.h include to Linux.Network.IfReq

vapi/linux.vapi

index 9407d36cab0fce913ad8fee48970504eaa3fb03c..1087bcc35f919fa5312f80b9dd53292ce6cf4151 100644 (file)
@@ -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;