compiler complains that struct ifreq does not contain member ifr_hwaddr.
SIOCGIFHWADDR is defined in sockio.h, and the below code fails to compile.
if (ioctl(fd, SIOCGIFHWADDR, &ifr[i]) >= 0)
res= memcpy_and_test(to, (uchar *)&ifr[i].ifr_hwaddr.sa_data,
I can reproduce the compile error with both Solaris 11 Express and non-express editions installed in a VM, I do not have a clue how this could work on buildbot.