Replace os.linux to os.system

master
Luna 2020-04-20 19:56:45 -03:00 committed by Andrew Kelley
parent 6623efd7d4
commit 0d091dc923
1 changed files with 1 additions and 1 deletions

View File

@ -546,7 +546,7 @@ fn if_nametoindex(name: []const u8) !u32 {
std.mem.copy(u8, &ifr.ifr_ifrn.name, name);
ifr.ifr_ifrn.name[name.len] = 0;
os.ioctl(sockfd, os.linux.SIOCGIFINDEX, @ptrToInt(&ifr)) catch |err| {
os.ioctl(sockfd, os.system.SIOCGIFINDEX, @ptrToInt(&ifr)) catch |err| {
switch (err) {
error.NoDevice => return error.InterfaceNotFound,
else => return err,