Protect get_mac_address() block of code if "HAVE_STRUCT_SOCKADDR_DL"
This commit is contained in:
parent
58d34e7ff9
commit
e4b2b69a79
|
@ -671,7 +671,7 @@ int tnet_get_mac_address(tnet_mac_address* address)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# endif /* TSK_UNDER_WINDOWS_RT */
|
# 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 ifaddrs *ifaddrs, *ifaddr;
|
||||||
struct sockaddr_dl* sdl;
|
struct sockaddr_dl* sdl;
|
||||||
if (getifaddrs(&ifaddrs) == 0) {
|
if (getifaddrs(&ifaddrs) == 0) {
|
||||||
|
|
Loading…
Reference in New Issue