diff options
author | unknown <sanja@askmonty.org> | 2011-10-18 22:50:17 +0300 |
---|---|---|
committer | unknown <sanja@askmonty.org> | 2011-10-18 22:50:17 +0300 |
commit | 9f79d2f9e133b5530f5e17360c2f5ae2fc33ea59 (patch) | |
tree | a940b9bcca1d80349cb13c1d2164b3c2d5e2dd0d /mysys/my_gethwaddr.c | |
parent | 4720b6f68bfcec7b6fc4c3772ae61bbbc629ca5d (diff) | |
download | mariadb-git-9f79d2f9e133b5530f5e17360c2f5ae2fc33ea59.tar.gz |
Fix of building on Mac OS.
Diffstat (limited to 'mysys/my_gethwaddr.c')
-rw-r--r-- | mysys/my_gethwaddr.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mysys/my_gethwaddr.c b/mysys/my_gethwaddr.c index bcc231eaf7e..391e652d406 100644 --- a/mysys/my_gethwaddr.c +++ b/mysys/my_gethwaddr.c @@ -32,8 +32,7 @@ static my_bool memcpy_and_test(uchar *to, uchar *from, uint len) return res; } -#ifdef __FreeBSD__ - +#if defined(__APPLE__) || defined(__FreeBSD__) #include <net/ethernet.h> #include <sys/sysctl.h> #include <net/route.h> @@ -63,7 +62,7 @@ my_bool my_gethwaddr(uchar *to) if (ifm->ifm_type == RTM_IFINFO) { sdl = (struct sockaddr_dl *)(ifm + 1); - addr= LLADDR(sdl); + addr= (uchar *)LLADDR(sdl); res= memcpy_and_test(to, addr, ETHER_ADDR_LEN); } } |