Skip to content
Permalink
Browse files
OS detection logic in my_gethwaddr.c is backwards
  • Loading branch information
hadfl authored and grooverdan committed Nov 13, 2022
1 parent 7ee612c commit 5bf5e6e
Showing 1 changed file with 1 addition and 1 deletion.
@@ -116,7 +116,7 @@ my_bool my_gethwaddr(uchar *to)
uint i;
for (i= 0; res && i < ifc.ifc_len / sizeof(ifr[0]); i++)
{
#if !defined(_AIX) || !defined(__linux__)
#if defined(_AIX) || defined(__linux__)
#if defined(__linux__)
#define HWADDR_DATA ifr[i].ifr_hwaddr.sa_data
#else

0 comments on commit 5bf5e6e

Please sign in to comment.