Skip to content

Commit

Permalink
Fix Travis compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
tambry committed Jul 16, 2015
1 parent 67e647a commit 5f43360
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rpcs3/Emu/SysCalls/Modules/cellNetCtl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "Emu/Memory/Memory.h"
#include "Emu/System.h"
#include "Emu/SysCalls/Modules.h"
#include "Utilities/Log.h"

#include "rpcs3/Ini.h"
#include "cellSysutil.h"
Expand All @@ -21,6 +22,8 @@
#include <netinet/in.h>
#include <net/if.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <ifaddrs.h>
#endif

extern Module cellNetCtl;
Expand Down Expand Up @@ -159,7 +162,7 @@ s32 cellNetCtlGetInfo(s32 code, vm::ptr<CellNetCtlInfo> info)

if (family == AF_INET)
{
strcpy_trunc(info->ip_address, ifaddrs->ifa_addr->sa_data);
strcpy_trunc(info->ip_address, ifa->ifa_addr->sa_data);
}
}

Expand Down Expand Up @@ -221,7 +224,7 @@ s32 cellNetCtlGetInfo(s32 code, vm::ptr<CellNetCtlInfo> info)

if (family == AF_INET)
{
strcpy_trunc(info->ip_address, ifaddrs->ifa_netmask->sa_data);
strcpy_trunc(info->ip_address, ifa->ifa_netmask->sa_data);
}
}

Expand Down

0 comments on commit 5f43360

Please sign in to comment.