--- mariadb-10.6.16/mysys/my_gethwaddr.c.orig +++ mariadb-10.6.16/mysys/my_gethwaddr.c @@ -119,6 +119,8 @@ #if defined(_AIX) || defined(__linux__) #if defined(__linux__) #define HWADDR_DATA ifr[i].ifr_hwaddr.sa_data +#elif defined(__sun) +#define HWADDR_DATA ifr[i].ifr_enaddr #else #define HWADDR_DATA ifr[i].ifr_hwaddr #endif