libfreerdp-core: fix compilation on Mac OS X

This commit is contained in:
Marc-André Moreau 2011-07-24 18:09:53 -04:00
parent 8ceb8e1ea8
commit e1f48c5b28
2 changed files with 3 additions and 0 deletions

View File

@ -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]); */

View File

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