http://bugs.winehq.org/show_bug.cgi?id=6767
--- Comment #11 from jmmikkel@mit.edu 2011-12-04 16:22:17 CST --- I suppose this change helps.
The original code is still the same and will still be broken on NetBSD 4. In the last three years the machine I was using has died and I have updated all my installs to NetBSD 5. NetBSD 5's SIOCGIFCONF now behaves like Linux regarding the ifc_len. So the original code works in NetBSD 5. The new code using getifaddrs seems to work as well on NetBSD 5. I must assume that it would also work on NetBSD 4 since the man page claims getifaddrs is ancient history. I cannot confirm it without installing NetBSD 4 and running this new code.
I am not willing to install NetBSD 4 to test this for you. I have long since given up on Wine because over time, it kept working *worse* and worse for the few things I was trying to use it for. To even test this change I had to hack up another test program, and it was a lot more complicated this time. To this day I am still baffled why changing == to >= was apparently unworkable, and it doesn't make me feel at all inclined to rebuild/reinstall wine, and the software that had been working and gradually quit working (plus the server to run it against) to test future changes.