Skip to content

Commit

Permalink
If __APPLE__ not DARWIN
Browse files Browse the repository at this point in the history
  • Loading branch information
TheROPFather committed Mar 5, 2018
1 parent a1cb78a commit f03d20d
Showing 1 changed file with 4 additions and 6 deletions.
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

0 comments on commit f03d20d

Please sign in to comment.