Skip to content

Commit

Permalink
Merge pull request #6 from gshkurti/bugfix/fix-linux-clib-includes
Browse files Browse the repository at this point in the history
fix conditional linux includes in clib
  • Loading branch information
Wickenhäuser, Patrick authored and GitHub Enterprise committed Dec 6, 2024
2 parents ffff87d + 7f3fe0e commit 2e89110
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xcplib/src/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,9 @@ BOOL socketClose(SOCKET *sp) {
#include <ifaddrs.h>
#include <net/if_dl.h>
#endif
#ifdef _LINUX
#include <ifaddrs.h>
#endif

static BOOL GetMAC(char* ifname, uint8_t* mac) {
struct ifaddrs *ifaddrs, *ifa;
Expand Down

0 comments on commit 2e89110

Please sign in to comment.