Skip to content

Commit

Permalink
Merge pull request #151 from TheROPFather/macExp
Browse files Browse the repository at this point in the history
Working Mac build.
  • Loading branch information
nico-abram authored Mar 10, 2018
2 parents 4c81b2f + f03d20d commit 2c8987c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
Binary file added extern/LuaJIT/lua51Mac.a
Binary file not shown.
Binary file added extern/discord-rpc-2.0.1/lib/libdiscord-rpcMac.a
Binary file not shown.
10 changes: 4 additions & 6 deletions src/StageStats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ string getMachineName()
#include <sys/types.h>
#include <sys/ioctl.h>

#ifdef DARWIN
#ifdef __APPLE__
#include <sys/types.h>
#include <sys/socket.h>
#include <net/if_dl.h>
Expand Down Expand Up @@ -128,7 +128,7 @@ void getMacHash(uint16_t& mac1, uint16_t& mac2)
mac1 = 0;
mac2 = 0;

#ifdef DARWIN
#ifdef __APPLE__

struct ifaddrs* ifaphead;
if (getifaddrs(&ifaphead) != 0)
Expand All @@ -145,12 +145,10 @@ void getMacHash(uint16_t& mac1, uint16_t& mac2)
if (!foundMac1)
{
foundMac1 = true;
mac1 = hashMacAddress((uint8_t*)(LLADDR(sdl))); //sdl->sdl_data) +
sdl->sdl_nlen) );
mac1 = hashMacAddress((uint8_t*)(LLADDR(sdl)));
}
else {
mac2 = hashMacAddress((uint8_t*)(LLADDR(sdl))); //sdl->sdl_data) +
sdl->sdl_nlen) );
mac2 = hashMacAddress((uint8_t*)(LLADDR(sdl)));
break;
}
}
Expand Down
File renamed without changes.

0 comments on commit 2c8987c

Please sign in to comment.