OS detection logic in my_gethwaddr.c is backwards

This commit is contained in:
Dominik Hassler 2022-11-12 13:14:23 +00:00 committed by Daniel Black
parent 7ee612c912
commit 5bf5e6eeca

View file

@ -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