Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-106

my_gethwaddr() does not compile on Solaris 11

    XMLWordPrintable

Details

    Description

      compiler complains that struct ifreq does not contain member ifr_hwaddr.
      SIOCGIFHWADDR is defined in sockio.h, and the below code fails to compile.

      #ifdef SIOCGIFHWADDR
      if (ioctl(fd, SIOCGIFHWADDR, &ifr[i]) >= 0)
      res= memcpy_and_test(to, (uchar *)&ifr[i].ifr_hwaddr.sa_data,
      ETHER_ADDR_LEN);
      #else

      I can reproduce the compile error with both Solaris 11 Express and non-express editions installed in a VM, I do not have a clue how this could work on buildbot.

      Attachments

        Activity

          People

            serg Sergei Golubchik
            wlad Vladislav Vaintroub
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.