Skip to content

Conversation

fl4p
Copy link

@fl4p fl4p commented Feb 28, 2016

By default windows.h loads winsock.h, not WinSock2.h. The latter is required (plus Ws2ipdef.h) for IPv6 support.

Also note that in the mongoose.h there is a pragma comment to link with Winsock2 lib, but mongoose actually uses the Winsock1 headers.

Review on Reviewable

@cpq cpq assigned rojer Mar 1, 2016
rojer pushed a commit that referenced this pull request Mar 15, 2016
Contributed by @f4bsch in #626
Submitting here with a minor change: MSDN says that ws2ipdef.h should
not be included directly and users should include ws2tcpip.h

PUBLISHED_FROM=1ebe7eac0cf87b0554432b94049b3d58bf7640f7
@rojer
Copy link
Collaborator

rojer commented Mar 15, 2016

committed in 1d0a898, thanks

@rojer rojer closed this Mar 15, 2016
mkmik pushed a commit to cesanta/mongoose-os that referenced this pull request Mar 15, 2016
Contributed by @f4bsch in cesanta/mongoose#626
Submitting here with a minor change: MSDN says that ws2ipdef.h should
not be included directly and users should include ws2tcpip.h

PUBLISHED_FROM=1ebe7eac0cf87b0554432b94049b3d58bf7640f7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants