-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
win: fix undeclared NDIS_IF_MAX_STRING_SIZE #1623
Conversation
NDIS_IF_MAX_STRING_SIZE does not appear to be available on many windows system.
I can confirm libuv 1.16.0 fails to build on an appveyor configuration used for MoarVM and on a separate windows system.
|
Interesting. According to this, It looks like Wireshark does this, but that code is over four years old. |
BTW, @ugexe on what platform the compilation fails for you? I'm +1 on adding the define, but I see you are using |
Platform is Windows 10 (Version 1703; OS Build 15063.674) and VS2017. It does build with Without commenting out the noted two lines:
|
Another data point on the I was looking at the win2012r2-vs2017 build output and wondered if |
@bzoz what do you want to do here? I'd like to get this resolved soon rather than later, as our most recent release is broken on a few platforms. |
@cjihrig I would use the Wiresharks form of #ifndef NDIS_IF_MAX_STRING_SIZE
#define NDIS_IF_MAX_STRING_SIZE IF_MAX_STRING_SIZE
#endif if it works on that setup. I'm +1 on this, I was just curious about why this happens. |
I can confirm the wireshark method also resolves the original problem. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM if the CI comes back green: https://ci.nodejs.org/view/libuv/job/libuv-test-commit/566/
NDIS_IF_MAX_STRING_SIZE does not appear to be available on some Windows systems. This commit defines it using the same logic used by Wireshark. See: https://github.com/boundary/wireshark/blob/07eade8124fd1d5386161591b52e177ee6ea849f/capture_win_ifnames.c#L42-L44 Refs: nodejs/node#16835 Refs: #1445 PR-URL: #1623 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Bartosz Sosnowski <[email protected]>
Landed in 84fa7fc. Thanks! |
NDIS_IF_MAX_STRING_SIZE does not appear to be available on many windows system.