diff options
author | Sergei Golubchik <sergii@pisem.net> | 2012-01-23 11:43:28 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2012-01-23 11:43:28 +0100 |
commit | 81690cf326e09799ca77d9f7bc5601905b706548 (patch) | |
tree | 74341d6f87836fd8d7d501df516c9695f31d7d0c | |
parent | bb4053afc3cb30c6016530884061d520350004f1 (diff) | |
download | mariadb-git-81690cf326e09799ca77d9f7bc5601905b706548.tar.gz |
MDEV-106 my_gethwaddr() does not compile on Solaris 11
-rw-r--r-- | mysys/my_gethwaddr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mysys/my_gethwaddr.c b/mysys/my_gethwaddr.c index c96af3f1018..c4ab39dbcf1 100644 --- a/mysys/my_gethwaddr.c +++ b/mysys/my_gethwaddr.c @@ -101,14 +101,14 @@ my_bool my_gethwaddr(uchar *to) uint i; for (i= 0; res && i < ifc.ifc_len / sizeof(ifr[0]); i++) { -#ifdef SIOCGIFHWADDR +#ifdef __linux__ if (ioctl(fd, SIOCGIFHWADDR, &ifr[i]) >= 0) res= memcpy_and_test(to, (uchar *)&ifr[i].ifr_hwaddr.sa_data, ETHER_ADDR_LEN); #else /* - A bug in OpenSolaris prevents non-root from getting a mac address: - http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=4720634 + A bug in OpenSolaris used to prevent non-root from getting a mac address: + {no url. Oracle killed the old OpenSolaris bug database} Thus, we'll use an alternative method and extract the address from the arp table. |