Protect get_mac_address() block of code if "HAVE_STRUCT_SOCKADDR_DL"

This commit is contained in:
bossiel 2015-06-20 18:36:09 +00:00
parent 58d34e7ff9
commit e4b2b69a79
1 changed files with 1 additions and 1 deletions

View File

@ -671,7 +671,7 @@ int tnet_get_mac_address(tnet_mac_address* address)
}
}
# endif /* TSK_UNDER_WINDOWS_RT */
#elif HAVE_IFADDRS_H && HAVE_GETIFADDRS
#elif HAVE_IFADDRS_H && HAVE_GETIFADDRS && HAVE_STRUCT_SOCKADDR_DL
struct ifaddrs *ifaddrs, *ifaddr;
struct sockaddr_dl* sdl;
if (getifaddrs(&ifaddrs) == 0) {