Package: netifaces Version: 0.8-1 Severity: important Tags: patch User: [email protected] Usertags: hurd
Hi, currently[1], netifaces does not compile on GNU/Hurd. The problem is that even AF_LINK is defined, there is no sockaddr_dl struct for it. The attached patch makes netifaces.c pretend there is no AF_LINK (while still having it defined). I did a quick test, and the built python-netifaces seems working fine. [1] https://buildd.debian.org/status/fetch.php?pkg=netifaces&arch=hurd-i386&ver=0.8-1&stamp=1339060102 Thanks, -- Pino
--- a/netifaces.c +++ b/netifaces.c @@ -171,6 +171,8 @@ static int af_to_len(int af) # define AF_LINK -1000 # endif # define HAVE_AF_LINK 0 +#elif defined(__GNU__) +# define HAVE_AF_LINK 0 #else # define HAVE_AF_LINK 1 #endif

