[Bug 20714] build fails on OpenSolaris: ifenum.c:322: error: structure has no member named `ifr_hwaddr'

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Nov 19 09:28:51 CST 2009


http://bugs.winehq.org/show_bug.cgi?id=20714


Petr Sumbera <petr.sumbera at sun.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |petr.sumbera at sun.com




--- Comment #1 from Petr Sumbera <petr.sumbera at sun.com>  2009-11-19 09:28:50 ---
Since OpenSolaris build 125, SIOCGIFHWADDR is now supported on (and only on)
PF_PACKET sockets. 

See: http://arc.opensolaris.org/caselog/PSARC/2009/232/pfp-psarc.txt
>Two new interfaces need to be added, SIOCGIFHWADDR and SIOCGSTAMP.
>SIOCGIFHWADDR retrieves the hardware inteface of the interface
>specified in the "struct ifreq" passed in. SIOCGSTAMP ....
>At present there are no plans for a SIOCGLIFHWADDR as this ioctl
>does not exist on Linux. This project will only support these two
>ioctls on PF_PACKET sockets.

Similar problem was also encountered in KDE:
http://opensolaris.org/jive/thread.jspa?messageID=428636

Following or similar patch need to be added:

--- a/dlls/iphlpapi/ifenum.c
+++ b/dlls/iphlpapi/ifenum.c
@@ -298,7 +298,7 @@ static DWORD getInterfaceMaskByName(const char *name)
   return ret;
 }

-#if defined (SIOCGIFHWADDR)
+#if defined (SIOCGIFHWADDR) && !defined(__sun)
 static DWORD getInterfacePhysicalByName(const char *name, PDWORD len, PBYTE
addr,
  PDWORD type)
 {

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list