Skip to content

Commit

Permalink
fix linux-mac part2
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemoralis committed Jan 27, 2025
1 parent 028a624 commit 2514d2b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/libraries/network/net_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ typedef int socklen_t;
#include <unistd.h>
typedef int net_socket;
#endif
#if defined(__APPLE__)
#include <ifaddrs.h>
#include <net/if_dl.h>
#endif

#include <map>
#include <memory>
#include <mutex>
Expand Down Expand Up @@ -49,7 +54,7 @@ bool NetUtilInternal::RetrieveEthernetAddr() {
memcpy(ether_address.data(), info[0].Address, 6);
return true;
}
#elif defined __APPLE__
#elif defined(__APPLE__)
ifaddrs* ifap;

if (getifaddrs(&ifap) == 0) {
Expand Down

0 comments on commit 2514d2b

Please sign in to comment.