libfreerdp-core: fix compilation on Mac OS X
This commit is contained in:
parent
8ceb8e1ea8
commit
e1f48c5b28
@ -60,6 +60,7 @@ void tcp_get_ip_address(rdpTcp * tcp)
|
||||
|
||||
void tcp_get_mac_address(rdpTcp * tcp)
|
||||
{
|
||||
#ifdef LINUX
|
||||
uint8* mac;
|
||||
struct ifreq if_req;
|
||||
struct if_nameindex* ni;
|
||||
@ -84,6 +85,7 @@ void tcp_get_mac_address(rdpTcp * tcp)
|
||||
}
|
||||
|
||||
memmove((void*) mac, (void*) &if_req.ifr_ifru.ifru_hwaddr.sa_data[0], 6);
|
||||
#endif
|
||||
|
||||
/* printf("MAC: %02X:%02X:%02X:%02X:%02X:%02X\n",
|
||||
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); */
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/time.h>
|
||||
#include <freerdp/utils/memory.h>
|
||||
#include <freerdp/utils/wait_obj.h>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user